about summary refs log tree commit homepage
path: root/lib/PublicInbox/V2Writable.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-03 02:06:13 +0000
committerEric Wong <e@80x24.org>2021-01-03 18:30:30 +0000
commit82b805db3ad908f1c3ea114f329835c6f881144a (patch)
tree05c9c4ed0c5af457c4b928bc22e1709271f3b014 /lib/PublicInbox/V2Writable.pm
parentbf8df8160076d7a1231e0858ca4c243df3b7c860 (diff)
downloadpublic-inbox-82b805db3ad908f1c3ea114f329835c6f881144a.tar.gz
We can remove some now-pointless wrapper functions by using
->ipc_do in even more places.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r--lib/PublicInbox/V2Writable.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index cad559c5..885edbe9 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -1133,8 +1133,7 @@ sub unindex_oid_aux ($$$) {
         my ($self, $oid, $mid) = @_;
         my @removed = $self->{oidx}->remove_oid($oid, $mid);
         for my $num (@removed) {
-                my $idx = idx_shard($self, $num);
-                $idx->shard_remove($num);
+                idx_shard($self, $num)->ipc_do('xdb_remove', $num);
         }
 }