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. --- t/lei-store-fail.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/lei-store-fail.t b/t/lei-store-fail.t index c2f03148..1e83e383 100644 --- a/t/lei-store-fail.t +++ b/t/lei-store-fail.t @@ -39,7 +39,7 @@ EOM lei_ok qw(q m:testmessage@example.com); is($lei_out, "[null]\n", 'delayed commit is unindexed'); - # make immediate ->sto_done_request fail from mboxrd import: + # make immediate ->sto_barrier_request fail from mboxrd import: remove_tree("$ENV{HOME}/.local/share/lei/store"); # subsequent lei commands are undefined behavior, # but we need to make sure the current lei command fails: -- cgit v1.2.3-24-ge0c7