From 4b802d901372c284e0a3b9e515284c9e4cbfd101 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Mon, 19 Mar 2018 08:14:55 +0000 Subject: [PATCH] searchidxpart: s/barrier/remote_barrier/ 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 c1660783..d8c8c8bb 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 5c104d8e..261f9d91 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 -- 2.44.0