about summary refs log tree commit homepage
path: root/lib/PublicInbox/V2Writable.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-14 07:34:07 +0000
committerEric Wong <e@80x24.org>2019-06-14 21:56:40 +0000
commitf7651f3fea8cea0ee1f6567cc53f93a57a652a47 (patch)
treea6d805559d33bf993127309a3b25cadda1c98e48 /lib/PublicInbox/V2Writable.pm
parentbe998d9f32501d8c3acdaf4d5128a6343d5cb268 (diff)
downloadpublic-inbox-f7651f3fea8cea0ee1f6567cc53f93a57a652a47.tar.gz
Using compact to change shard count was abandoned during
the v2 development phase.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r--lib/PublicInbox/V2Writable.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index 76e61e86..db905f92 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -58,8 +58,8 @@ sub count_partitions ($) {
         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 @@ sub idx_init {
                 $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;