about summary refs log tree commit homepage
path: root/lib/PublicInbox/V2Writable.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-05-17 19:37:21 +0000
committerEric Wong <e@yhbt.net>2020-05-18 02:38:03 +0000
commitc43813b9138398ed2de06c3616a5932725090ae3 (patch)
tree7c64bf483be47ecf6fa54759670458b1d272fb72 /lib/PublicInbox/V2Writable.pm
parentf3482d4a19a8de47199fa18beb258deb699bf703 (diff)
downloadpublic-inbox-c43813b9138398ed2de06c3616a5932725090ae3.tar.gz
On powerful systems, having this option is preferable to
XAPIAN_FLUSH_THRESHOLD due to lock granularity and contention
with other processes (-learn, -mda, -watch).

Setting XAPIAN_FLUSH_THRESHOLD can cause -learn, -mda, and
-watch to get stuck until an epoch is completely processed.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r--lib/PublicInbox/V2Writable.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index bf5a0df9..c732b98a 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -159,7 +159,7 @@ sub do_idx ($$$$) {
         my $idx = idx_shard($self, $smsg->{num} % $self->{shards});
         $idx->index_raw($msgref, $mime, $smsg);
         my $n = $self->{transact_bytes} += $smsg->{bytes};
-        $n >= (PublicInbox::SearchIdx::BATCH_BYTES * $self->{shards});
+        $n >= ($PublicInbox::SearchIdx::BATCH_BYTES * $self->{shards});
 }
 
 sub _add {