about summary refs log tree commit homepage
path: root/lib/PublicInbox/Xapcmd.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-14 07:37:03 +0000
committerEric Wong <e@80x24.org>2019-06-14 21:56:40 +0000
commita0eabc015e22e51cbf8f6060abafd5b53a0ae72f (patch)
treeba806855932dabcba7a8bbd446b934ed0863855e /lib/PublicInbox/Xapcmd.pm
parentf7651f3fea8cea0ee1f6567cc53f93a57a652a47 (diff)
downloadpublic-inbox-a0eabc015e22e51cbf8f6060abafd5b53a0ae72f.tar.gz
We're slowly getting rid of the word "partition" when it
comes to remain consistent with Xapian docs.
Diffstat (limited to 'lib/PublicInbox/Xapcmd.pm')
-rw-r--r--lib/PublicInbox/Xapcmd.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm
index e1c6fe3a..e303da9e 100644
--- a/lib/PublicInbox/Xapcmd.pm
+++ b/lib/PublicInbox/Xapcmd.pm
@@ -68,11 +68,11 @@ sub commit_changes ($$$) {
                         my $n = $im->count_partitions;
                         if (defined $new_parts && $n != $new_parts) {
                                 die
-"BUG: counted $n partitions after repartioning to $new_parts";
+"BUG: counted $n shards after resharding to $new_parts";
                         }
                         my $prev = $im->{partitions};
                         if ($pr && $prev != $n) {
-                                $pr->("partition count changed: $prev => $n\n");
+                                $pr->("shard count changed: $prev => $n\n");
                                 $im->{partitions} = $n;
                         }
                 }
@@ -177,7 +177,7 @@ sub run {
         }
 
         # we want temporary directories to be as deep as possible,
-        # so v2 partitions can keep "xap$SCHEMA_VERSION" on a separate FS.
+        # so v2 shards can keep "xap$SCHEMA_VERSION" on a separate FS.
         if ($v == 1) {
                 if (defined $new_parts) {
                         warn
@@ -355,9 +355,9 @@ sub cpdb ($$) {
         if (ref($old) eq 'ARRAY') {
                 ($cur_part) = ($new =~ m!xap[0-9]+/([0-9]+)\b!);
                 defined $cur_part or
-                        die "BUG: could not extract partition # from $new";
+                        die "BUG: could not extract shard # from $new";
                 $new_parts = $opt->{reshard};
-                defined $new_parts or die 'BUG: got array src w/o --partition';
+                defined $new_parts or die 'BUG: got array src w/o --reshard';
 
                 # repartitioning, M:N copy means have full read access
                 foreach (@$old) {