diff options
author | Eric Wong <e@80x24.org> | 2019-06-14 07:56:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-14 21:56:40 +0000 |
commit | 9b20aeef079c67ddaa2911b89f0b1209903d72fb (patch) | |
tree | 0a56192d6badc0071cb729fedf36c6013a0e7be3 /lib/PublicInbox/Xapcmd.pm | |
parent | e48df4770cffd4ef9672a884ea827cbcf566e469 (diff) | |
download | public-inbox-9b20aeef079c67ddaa2911b89f0b1209903d72fb.tar.gz |
v2writable: count_partitions => count_shards
Another step towards becoming consistent with Xapian terminology
Diffstat (limited to 'lib/PublicInbox/Xapcmd.pm')
-rw-r--r-- | lib/PublicInbox/Xapcmd.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm index e303da9e..89bacc50 100644 --- a/lib/PublicInbox/Xapcmd.pm +++ b/lib/PublicInbox/Xapcmd.pm @@ -63,9 +63,9 @@ sub commit_changes ($$$) { if (!$opt->{-coarse_lock}) { $opt->{-skip_lock} = 1; - if ($im->can('count_partitions')) { + if ($im->can('count_shards')) { my $pr = $opt->{-progress}; - my $n = $im->count_partitions; + my $n = $im->count_shards; if (defined $new_parts && $n != $new_parts) { die "BUG: counted $n shards after resharding to $new_parts"; |