From 82b805db3ad908f1c3ea114f329835c6f881144a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 3 Jan 2021 02:06:13 +0000 Subject: searchidxshard: IPC conversion, part 2 We can remove some now-pointless wrapper functions by using ->ipc_do in even more places. --- lib/PublicInbox/SearchIdxShard.pm | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'lib/PublicInbox/SearchIdxShard.pm') diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm index 68644bc0..43dad959 100644 --- a/lib/PublicInbox/SearchIdxShard.pm +++ b/lib/PublicInbox/SearchIdxShard.pm @@ -54,16 +54,6 @@ sub index_raw { $self->ipc_do('add_message', $eml, $smsg); } -sub shard_add_eidx_info { - my ($self, $docid, $eidx_key, $eml) = @_; - $self->ipc_do('add_eidx_info', $docid, $eidx_key, $eml); -} - -sub shard_remove_eidx_info { - my ($self, $docid, $eidx_key, $eml) = @_; - $self->ipc_do('remove_eidx_info', $docid, $eidx_key, $eml); -} - # needed when there's multiple IPC workers and the parent forking # causes newer siblings to inherit older siblings sockets sub shard_atfork_child { @@ -93,26 +83,6 @@ sub shard_close { $self->ipc_worker_stop; } -sub shard_remove { - my ($self, $num) = @_; - $self->ipc_do('remove_by_docid', $num); -} - -sub shard_set_keywords { - my ($self, $docid, @kw) = @_; - $self->ipc_do('set_keywords', $docid, @kw); -} - -sub shard_remove_keywords { - my ($self, $docid, @kw) = @_; - $self->ipc_do('remove_keywords', $docid, @kw); -} - -sub shard_add_keywords { - my ($self, $docid, @kw) = @_; - $self->ipc_do('add_keywords', $docid, @kw); -} - sub shard_over_check { my ($self, $over) = @_; if ($self->{-ipc_sock} && $over->{dbh}) { -- cgit v1.2.3-24-ge0c7