]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidx: remove leftover debugging code
authorEric Wong <e@80x24.org>
Fri, 20 Apr 2018 03:27:39 +0000 (03:27 +0000)
committerEric Wong <e@80x24.org>
Fri, 20 Apr 2018 03:27:55 +0000 (03:27 +0000)
I was using this to trace the path of brian's message.

Fixes: 017fed7bc4d33ac4
("searchidx: regenerate and avoid article number gaps on full index")

lib/PublicInbox/SearchIdx.pm

index 8c3bc2d3ce20ce48267b53381b9dd66b63387ad3..4dc81352f535568d7673cabb8d6ad6fff5cb859b 100644 (file)
@@ -551,16 +551,11 @@ sub read_log {
        my %D;
        my $line;
        my $newest;
-       my $mid = '20170114215743.5igbjup6qpsh3jfg@genre.crustytoothpaste.net';
        while (defined($line = <$log>)) {
                if ($line =~ /$addmsg/o) {
                        my $blob = $1;
                        delete $D{$blob} and next;
                        my $mime = do_cat_mail($git, $blob, \$bytes) or next;
-                       my $mids = mids($mime->header_obj);
-                       foreach (@$mids) {
-                               warn "ADD $mid\n" if ($_ eq $mid);
-                       }
                        batch_adjust(\$max, $bytes, $batch_cb, $latest);
                        $add_cb->($self, $mime, $bytes, $blob);
                } elsif ($line =~ /$delmsg/o) {
@@ -574,10 +569,6 @@ sub read_log {
        # get the leftovers
        foreach my $blob (keys %D) {
                my $mime = do_cat_mail($git, $blob, \$bytes) or next;
-               my $mids = mids($mime->header_obj);
-               foreach (@$mids) {
-                       warn "DEL $mid\n" if ($_ eq $mid);
-               }
                $del_cb->($self, $mime);
        }
        $batch_cb->($latest, $newest);