about summary refs log tree commit homepage
path: root/lib/PublicInbox/Xapcmd.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Xapcmd.pm')
-rw-r--r--lib/PublicInbox/Xapcmd.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm
index 89bacc50..322d827a 100644
--- a/lib/PublicInbox/Xapcmd.pm
+++ b/lib/PublicInbox/Xapcmd.pm
@@ -70,10 +70,10 @@ sub commit_changes ($$$) {
                                 die
 "BUG: counted $n shards after resharding to $new_parts";
                         }
-                        my $prev = $im->{partitions};
+                        my $prev = $im->{shards};
                         if ($pr && $prev != $n) {
                                 $pr->("shard count changed: $prev => $n\n");
-                                $im->{partitions} = $n;
+                                $im->{shards} = $n;
                         }
                 }