From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 1905D1FAFB for ; Mon, 19 Mar 2018 08:15:05 +0000 (UTC) From: "Eric Wong (Contractor, The Linux Foundation)" To: meta@public-inbox.org Subject: [PATCH 23/27] searchidxpart: s/barrier/remote_barrier/ Date: Mon, 19 Mar 2018 08:14:55 +0000 Message-Id: <20180319081459.10645-24-e@80x24.org> In-Reply-To: <20180319081459.10645-1-e@80x24.org> References: <20180319081459.10645-1-e@80x24.org> List-Id: Be consistent with our "remote_" prefix for other IPC subs --- lib/PublicInbox/SearchIdxPart.pm | 2 +- lib/PublicInbox/V2Writable.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/SearchIdxPart.pm b/lib/PublicInbox/SearchIdxPart.pm index c166078..d8c8c8b 100644 --- a/lib/PublicInbox/SearchIdxPart.pm +++ b/lib/PublicInbox/SearchIdxPart.pm @@ -95,7 +95,7 @@ sub atfork_child { } # called by V2Writable: -sub barrier { +sub remote_barrier { my $w = $_[0]->{w}; print $w "barrier\n" or die "failed to print: $!"; $w->flush or die "failed to flush: $!"; diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 5c104d8..261f9d9 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -280,7 +280,7 @@ sub barrier { # Now deal with Xapian $skel->barrier_init(scalar(@$parts)); # each partition needs to issue a barrier command to skel: - $_->barrier foreach @$parts; + $_->remote_barrier foreach @$parts; $skel->barrier_wait; # wait for each Xapian partition -- EW