diff options
author | Eric Wong <e@80x24.org> | 2020-12-08 21:21:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-09 21:13:36 +0000 |
commit | 443ab96a3b329556e26a57b02c7383d5faf536b3 (patch) | |
tree | 9ce73bdbae595b89673021394689c01cc6bdd400 /lib | |
parent | 526f25b2da71377da8e2d8c9a3b717411e58682f (diff) | |
download | public-inbox-443ab96a3b329556e26a57b02c7383d5faf536b3.tar.gz |
The content_hash() hash in the same scope may trigger warnings for a given blob, so ensure we correctly report the blob where it happens.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/ExtSearchIdx.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index c82d1633..11f7786d 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -222,6 +222,8 @@ sub ck_existing { # git->cat_async callback if ($type eq 'missing') { _blob_missing($req); } elsif (!is_bad_blob($oid, $type, $size, $smsg->{blob})) { + my $self = $req->{self} // die 'BUG: {self} missing'; + local $self->{current_info} = "$self->{current_info} $oid"; my $cur = PublicInbox::Eml->new($bref); if (content_hash($cur) eq $req->{chash}) { push @{$req->{indexed}}, $smsg; # for do_xpost |