From cad60b2aa5fee563f2a6b41fa0cc7267e13e4bde Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 16 Apr 2024 20:56:27 +0000 Subject: 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. --- lib/PublicInbox/LeiInput.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiInput.pm') diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm index d003d983..c388f7dc 100644 --- a/lib/PublicInbox/LeiInput.pm +++ b/lib/PublicInbox/LeiInput.pm @@ -499,7 +499,7 @@ sub process_inputs { } # always commit first, even on error partial work is acceptable for # lei - $self->{lei}->sto_done_request; + $self->{lei}->sto_barrier_request; $self->{lei}->fail($err) if $err; } -- cgit v1.2.3-24-ge0c7