]> Sergey Matveev's repositories - public-inbox.git/commit
lei q: avoid kw lookup failure on remote mboxrd
authorEric Wong <e@80x24.org>
Fri, 15 Oct 2021 09:52:53 +0000 (09:52 +0000)
committerEric Wong <e@80x24.org>
Fri, 15 Oct 2021 15:58:01 +0000 (15:58 +0000)
commitea11b7b17d525d20a07d7f62c0334501c5a721b4
tree4f6df4242be888948e9879d10cd59ebb9323fd6d
parent738c4a65719e62784fe6baf3781c626b17f3783d
lei q: avoid kw lookup failure on remote mboxrd

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.
lib/PublicInbox/LeiStore.pm
lib/PublicInbox/LeiXSearch.pm
lib/PublicInbox/SearchIdx.pm
t/lei_store.t