]> Sergey Matveev's repositories - public-inbox.git/commit
lei: retry_reopen on read-only Xapian access
authorEric Wong <e@80x24.org>
Fri, 28 May 2021 19:47:23 +0000 (19:47 +0000)
committerEric Wong <e@80x24.org>
Fri, 28 May 2021 22:37:53 +0000 (22:37 +0000)
commit5944277a4dc986f9adf9ba69a1e6e44899ad98c1
tree45c8fe978d381e61eb3e7658ef89fa51f7a2103d
parent82e141cdf4a00de174b0a919689d846bb387cbf5
lei: retry_reopen on read-only Xapian access

Xapian DBs may be modified by a parallel process while we're
reading it, and Xapian's MVCC model places the burden on readers
to retry operations.

We'll also have retry_reopen croak instead of die on errors,
which ought to help us track down some "Document not found"
errors I've occasionally seen when using "lei <q|up>".
lib/PublicInbox/LeiSearch.pm
lib/PublicInbox/LeiXSearch.pm
lib/PublicInbox/Search.pm