]> Sergey Matveev's repositories - public-inbox.git/commitdiff
extindex: show OID on bad blob failure
authorEric Wong <e@80x24.org>
Wed, 13 Oct 2021 07:00:34 +0000 (07:00 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Oct 2021 19:51:16 +0000 (19:51 +0000)
AFAIK I've never hit these messages, but I might be glad
if I ever do.

lib/PublicInbox/ExtSearchIdx.pm

index 40489eab4c6668e8b1ca3fc39e6999d741b292a0..ddb16241e23d029a458ccd3a38a9c8bac2bbebfc 100644 (file)
@@ -595,11 +595,11 @@ sub _reindex_oid { # git->cat_async callback
                my $oidbin = pack('H*', $expect_oid);
                my $remain = _unref_doc($sync, $docid, undef, undef, $oidbin);
                if ($remain == 0) {
-                       warn "W: #$docid gone or corrupted\n";
+                       warn "W: #$docid ($oid) gone or corrupt\n";
                } elsif (my $next_oid = $req->{xr3r}->[++$req->{ix}]->[2]) {
                        $self->git->cat_async($next_oid, \&_reindex_oid, $req);
                } else {
-                       warn "BUG: #$docid gone (UNEXPECTED)\n";
+                       warn "BUG: #$docid ($oid) gone (UNEXPECTED)\n";
                }
                return;
        }