lib/PublicInbox/V2Writable.pm | 6 +++--- diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 76e61e86931078c41e5999d912efd521df8334bf..db905f924879e78e61e8bf1c4d06405cd09d19bd 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -58,8 +58,8 @@ my $nparts = 0; my $xpfx = $self->{xpfx}; # always load existing partitions in case core count changes: - # Also, partition count may change while -watch is running - # due to -compact + # Also, shard count may change while -watch is running + # due to "xcpdb --reshard" if (-d $xpfx) { foreach my $part (<$xpfx/*>) { -d $part && $part =~ m!/[0-9]+\z! or next; @@ -288,7 +288,7 @@ $ibx->with_umask(sub { $self->lock_acquire unless ($opt && $opt->{-skip_lock}); $over->create; - # -compact can change partition count while -watch is idle + # xcpdb can change shard count while -watch is idle my $nparts = count_partitions($self); if ($nparts && $nparts != $self->{partitions}) { $self->{partitions} = $nparts;