diff options
author | Eric Wong <e@80x24.org> | 2019-06-14 08:02:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-14 21:56:40 +0000 |
commit | 2e0abeb5e0e2ffa55ffef650f91f50086f143019 (patch) | |
tree | 60f9eb7ffae09773a56e0c1dcccd7e12c76558c7 /t/xcpdb-reshard.t | |
parent | 240de56c97d767cd5c819ac0be858359e8d2eff3 (diff) | |
download | public-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.t | 6 |
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); |