]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Xapcmd.pm
v2writable: count_partitions => count_shards
[public-inbox.git] / lib / PublicInbox / Xapcmd.pm
index e303da9e8ccd339381614e8a85c5f813b93c129e..89bacc5007ea93f3de5c78da26de1e4a893347e7 100644 (file)
@@ -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";