about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtSearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-02 11:18:35 +0000
committerEric Wong <e@80x24.org>2021-10-02 20:09:44 +0000
commit0aa49f48a52fba4c0a6d62be1f73e9ba4e31477d (patch)
tree5951e77670623fbecb26db6b51964318b1b77106 /lib/PublicInbox/ExtSearchIdx.pm
parentf28fdcd6d8d6ac36c7b6adf6670238426f3cc067 (diff)
downloadpublic-inbox-0aa49f48a52fba4c0a6d62be1f73e9ba4e31477d.tar.gz
I'm not sure why they weren't emitted, earlier.
Diffstat (limited to 'lib/PublicInbox/ExtSearchIdx.pm')
-rw-r--r--lib/PublicInbox/ExtSearchIdx.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm
index 972049e4..eb7c3d67 100644
--- a/lib/PublicInbox/ExtSearchIdx.pm
+++ b/lib/PublicInbox/ExtSearchIdx.pm
@@ -223,13 +223,16 @@ sub _blob_missing ($$) { # called when $smsg->{blob} is bad
         my $xref3 = $self->{oidx}->get_xref3($smsg->{num});
         my @keep = grep(!/:$smsg->{blob}\z/, @$xref3);
         if (@keep) {
+                warn "E: $smsg->{blob} gone, removing #$smsg->{num}\n";
                 $keep[0] =~ /:([a-f0-9]{40,}+)\z/ or
                         die "BUG: xref $keep[0] has no OID";
                 my $oidhex = $1;
                 $self->{oidx}->remove_xref3($smsg->{num}, $smsg->{blob});
-                my $upd = $self->{oidx}->update_blob($smsg, $oidhex);
-                my $saved = $self->{oidx}->get_art($smsg->{num});
+                $self->{oidx}->update_blob($smsg, $oidhex) or warn <<EOM;
+E: #$smsg->{num} gone ($smsg->{blob} => $oidhex)
+EOM
         } else {
+                warn "E: $smsg->{blob} gone, removing #$smsg->{num}\n";
                 $self->{oidx}->delete_by_num($smsg->{num});
         }
 }