]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidxpart: s/barrier/remote_barrier/
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Mon, 19 Mar 2018 08:14:55 +0000 (08:14 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Mon, 19 Mar 2018 08:16:34 +0000 (08:16 +0000)
Be consistent with our "remote_" prefix for other IPC subs

lib/PublicInbox/SearchIdxPart.pm
lib/PublicInbox/V2Writable.pm

index c166078331a6f59d690182369d56a01a25657648..d8c8c8bb00e49a9a9a5b7177b0bab9d5f841452e 100644 (file)
@@ -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: $!";
index 5c104d8ec27df12fa93528834f3d396e401e0691..261f9d91a0c7e7849eb21d22b6d48c6ffaf5b4ed 100644 (file)
@@ -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