projects
/
public-inbox.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05ba351
)
lei_mail_sync: show non-matching SHA
author
Eric Wong <e@80x24.org>
Tue, 19 Oct 2021 09:33:46 +0000 (09:33 +0000)
committer
Eric Wong <e@80x24.org>
Tue, 19 Oct 2021 17:29:23 +0000 (17:29 +0000)
It could prove useful for diagnosing bugs (either on our
end or an MUA's), or storage device failures.
lib/PublicInbox/LeiMailSync.pm
patch
|
blob
|
history
diff --git
a/lib/PublicInbox/LeiMailSync.pm
b/lib/PublicInbox/LeiMailSync.pm
index f2f1e3ed265838e384ad303b8e084c9575719e03..e70cb5de2b6b5046736ba72feeeb51a05a6bdf7b 100644
(file)
--- a/
lib/PublicInbox/LeiMailSync.pm
+++ b/
lib/PublicInbox/LeiMailSync.pm
@@
-339,9
+339,12
@@
WHERE b.oidbin = ?
next unless -s $fh;
local $/;
my $raw = <$fh>;
- if ($vrfy && git_sha(1, \$raw)->hexdigest ne $oidhex) {
- warn "$f changed $oidhex\n";
- next;
+ if ($vrfy) {
+ my $got = git_sha(1, \$raw)->hexdigest;
+ if ($got ne $oidhex) {
+ warn "$f changed $oidhex => $got\n";
+ next;
+ }
}
return \$raw;
}