]> Sergey Matveev's repositories - public-inbox.git/commitdiff
v2writable: rename remaining "remote" terminology
authorEric Wong <e@80x24.org>
Tue, 27 Oct 2020 07:54:18 +0000 (07:54 +0000)
committerEric Wong <e@80x24.org>
Sat, 7 Nov 2020 10:18:47 +0000 (10:18 +0000)
"remote" used to imply "child process on the same machine" which
was somewhat non-sensical, anyways.  And OverIdx has been in the
same process since v2 was finalized.  So use the suffix "aux"
for "auxiliary" since it can be safely jettisoned without
breaking URLs.

lib/PublicInbox/V2Writable.pm

index 6af50f5dd5b0ca9b9955224dbeff28dba32cac21..f8b7abe1c8aeac2574b53d92b4368db9bdaf2361 100644 (file)
@@ -423,7 +423,7 @@ sub rewrite_internal ($$;$$$) {
                        } else { # ->purge or ->remove
                                $self->{mm}->num_delete($num);
                        }
-                       unindex_oid_remote($self, $oid, $mid);
+                       unindex_oid_aux($self, $oid, $mid);
                }
        }
 
@@ -631,7 +631,7 @@ sub checkpoint ($;$) {
                }
 
                # last_commit is special, don't commit these until
-               # remote shards are done:
+               # Xapian shards are done:
                $dbh->begin_work;
                set_last_commits($self);
                $dbh->commit;
@@ -1082,7 +1082,7 @@ sub sync_prepare ($$$) {
        $regen_max + $self->{mm}->num_highwater() || 0;
 }
 
-sub unindex_oid_remote ($$$) {
+sub unindex_oid_aux ($$$) {
        my ($self, $oid, $mid) = @_;
        my @removed = $self->{oidx}->remove_oid($oid, $mid);
        for my $num (@removed) {
@@ -1117,7 +1117,7 @@ sub unindex_oid ($$;$) { # git->cat_async callback
                        }
                        $mm->num_delete($num);
                }
-               unindex_oid_remote($self, $oid, $mid);
+               unindex_oid_aux($self, $oid, $mid);
        }
 }