]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei/store: correctly delete entries from over
authorEric Wong <e@80x24.org>
Tue, 31 Aug 2021 11:21:26 +0000 (11:21 +0000)
committerEric Wong <e@80x24.org>
Tue, 31 Aug 2021 11:29:15 +0000 (11:29 +0000)
Some of these errors were inadvertantly lost due to delayed
error reporting in the past.

lib/PublicInbox/LeiStore.pm

index 0652137e8f06d5ffc0272ae8d356486d60bb6021..ab39043e9048ff68e357ac0693b0a4e7e7ccb93e 100644 (file)
@@ -243,8 +243,8 @@ sub remove_docids ($;@) {
        my $eidx = eidx_init($self);
        for my $docid (@docids) {
                $eidx->idx_shard($docid)->ipc_do('xdb_remove', $docid);
-               $self->{oidx}->delete_by_num($docid);
-               $self->{oidx}->{dbh}->do(<<EOF, undef, $docid);
+               $eidx->{oidx}->delete_by_num($docid);
+               $eidx->{oidx}->{dbh}->do(<<EOF, undef, $docid);
 DELETE FROM xref3 WHERE docid = ?
 EOF
        }