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-15 08:25:44 +0000
committerEric Wong <e@80x24.org>2019-06-15 08:25:44 +0000
commit27658d2c8b8e51fa64f523c873587273f4f16c46 (patch)
tree20bd8d5f3880836123c5a814073af30a2eead4cf /lib/PublicInbox/V2Writable.pm
parenta060a5a94d02045b48ccb8b3f4105170e52719b2 (diff)
downloadpublic-inbox-27658d2c8b8e51fa64f523c873587273f4f16c46.tar.gz
Now that the code matches Xapian terminology, ensure
our comments match, too.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r--lib/PublicInbox/V2Writable.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index 7a89093c..2b3ffa63 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -24,7 +24,7 @@ use IO::Handle;
 my $PACKING_FACTOR = 0.4;
 
 # SATA storage lags behind what CPUs are capable of, so relying on
-# nproc(1) can be misleading and having extra Xapian partions is a
+# nproc(1) can be misleading and having extra Xapian shards is a
 # waste of FDs and space.  It can also lead to excessive IO latency
 # and slow things down.  Users on NVME or other fast storage can
 # use the NPROC env or switches in our script/public-inbox-* programs
@@ -57,7 +57,7 @@ sub count_shards ($) {
         my $n = 0;
         my $xpfx = $self->{xpfx};
 
-        # always load existing partitions in case core count changes:
+        # always load existing shards in case core count changes:
         # Also, shard count may change while -watch is running
         # due to "xcpdb --reshard"
         if (-d $xpfx) {
@@ -292,7 +292,7 @@ sub idx_init {
                         $self->{shards} = $nshards;
                 }
 
-                # need to create all parts before initializing msgmap FD
+                # need to create all shards before initializing msgmap FD
                 my $max = $self->{shards} - 1;
 
                 # idx_shards must be visible to all forked processes
@@ -616,17 +616,17 @@ sub checkpoint ($;$) {
                 if ($wait) {
                         my $barrier = $self->barrier_init(scalar @$shards);
 
-                        # each partition needs to issue a barrier command
+                        # each shard needs to issue a barrier command
                         $_->remote_barrier for @$shards;
 
-                        # wait for each Xapian partition
+                        # wait for each Xapian shard
                         $self->barrier_wait($barrier);
                 } else {
                         $_->remote_commit for @$shards;
                 }
 
                 # last_commit is special, don't commit these until
-                # remote partitions are done:
+                # remote shards are done:
                 $dbh->begin_work;
                 set_last_commits($self);
                 $dbh->commit;