diff options
author | Eric Wong <e@80x24.org> | 2021-10-15 09:52:53 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-15 15:58:01 +0000 |
commit | ea11b7b17d525d20a07d7f62c0334501c5a721b4 (patch) | |
tree | 4f6df4242be888948e9879d10cd59ebb9323fd6d /t | |
parent | 738c4a65719e62784fe6baf3781c626b17f3783d (diff) | |
download | public-inbox-ea11b7b17d525d20a07d7f62c0334501c5a721b4.tar.gz |
When importing several sources in parallel via http(s) mboxrd, we need to be able to get keywords of uncommitted documents directly from shard workers. Otherwise, Xapian DocNotFound errors happen because the read-only LeiSearch won't see documents from uncomitted transactions. Keep in mind that it's possible the keywords can be changed on-the-fly even for uncommitted documents because of inotify watches from LeiNoteEvent.
Diffstat (limited to 't')
-rw-r--r-- | t/lei_store.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/lei_store.t b/t/lei_store.t index c31e27a2..40ad7800 100644 --- a/t/lei_store.t +++ b/t/lei_store.t @@ -138,7 +138,8 @@ Subject: timezone-dependent test WHAT IS TIME ANYMORE? EOM - ok($sto->add_eml($eml), 'recently received message'); + my $smsg = $sto->add_eml($eml); + ok($smsg && $smsg->{blob}, 'recently received message'); $sto->done; local $ENV{TZ} = 'GMT+5'; my $lse = $sto->search; |