about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 7ac16ec2..446cfb0d 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -561,6 +561,10 @@ sub link_and_save {
                         1;
                 });
         }
+        if ($vivified > 1) {
+                my $id = '<'.join('> <', @$mids).'>';
+                warn "BUG: vivified multiple ($vivified) ghosts for $id\n";
+        }
         # not really important, but we return any vivified ghost docid, here:
         return $doc_id if defined $doc_id;
         link_doc($self, $doc, $refs, $old_tid);