about summary refs log tree commit homepage
path: root/t/xcpdb-reshard.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-14 08:02:32 +0000
committerEric Wong <e@80x24.org>2019-06-14 21:56:40 +0000
commit2e0abeb5e0e2ffa55ffef650f91f50086f143019 (patch)
tree60f9eb7ffae09773a56e0c1dcccd7e12c76558c7 /t/xcpdb-reshard.t
parent240de56c97d767cd5c819ac0be858359e8d2eff3 (diff)
downloadpublic-inbox-2e0abeb5e0e2ffa55ffef650f91f50086f143019.tar.gz
Another potentially user-facing piece made consistent with
Xapian terminology.
Diffstat (limited to 't/xcpdb-reshard.t')
-rw-r--r--t/xcpdb-reshard.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/xcpdb-reshard.t b/t/xcpdb-reshard.t
index ce552f54..bf56404d 100644
--- a/t/xcpdb-reshard.t
+++ b/t/xcpdb-reshard.t
@@ -48,14 +48,14 @@ is(scalar(@parts), $nproc, 'got expected parts');
 my $orig = $ibx->over->query_xover(1, $ndoc);
 my %nums = map {; "$_->{num}" => 1 } @$orig;
 
-# ensure we can go up or down in partitions, or stay the same:
+# ensure we can go up or down in shards, or stay the same:
 for my $R (qw(2 4 1 3 3)) {
         delete $ibx->{search}; # release old handles
         is(system(@xcpdb, "-R$R", $ibx->{mainrepo}), 0, "xcpdb -R$R");
         my @new_parts = grep(m!/\d+\z!, glob("$ibx->{mainrepo}/xap*/*"));
-        is(scalar(@new_parts), $R, 'repartitioned to two parts');
+        is(scalar(@new_parts), $R, 'resharded to two parts');
         my $msgs = $ibx->search->query('s:this');
-        is(scalar(@$msgs), $ndoc, 'got expected docs after repartitioning');
+        is(scalar(@$msgs), $ndoc, 'got expected docs after resharding');
         my %by_mid = map {; "$_->{mid}" => $_ } @$msgs;
         ok($by_mid{"m$_\@example.com"}, "$_ exists") for (1..$ndoc);