diff options
author | Eric Wong <e@80x24.org> | 2024-04-16 20:56:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-04-17 09:22:52 +0000 |
commit | cad60b2aa5fee563f2a6b41fa0cc7267e13e4bde (patch) | |
tree | 16b82491371a51f2f3879dada0b64a6cce80d613 /lib/PublicInbox/ExtSearchIdx.pm | |
parent | 6b536768f828b12293ecd57ba93ecfa135fc2c77 (diff) | |
download | public-inbox-cad60b2aa5fee563f2a6b41fa0cc7267e13e4bde.tar.gz |
lei: use ->barrier to commit to lei/store
barrier (synchronous checkpoint) is better than ->done with parallel lei commands being issued (via '&' or different terminals), since repeatedly stopping and restarting processes doesn't play nicely with expensive tasks like `lei reindex'. This introduces a slight regression in maintaining more processes (and thus resource use) when lei is idle, but that'll be fixed in the next commit.
Diffstat (limited to 'lib/PublicInbox/ExtSearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/ExtSearchIdx.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index ebbffffc..763a124c 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -1424,5 +1424,6 @@ no warnings 'once'; *idx_shard = \&PublicInbox::V2Writable::idx_shard; *reindex_checkpoint = \&PublicInbox::V2Writable::reindex_checkpoint; *checkpoint = \&PublicInbox::V2Writable::checkpoint; +*barrier = \&PublicInbox::V2Writable::barrier; 1; |