]> Sergey Matveev's repositories - public-inbox.git/commit
search: retry document loading from Xapian
authorEric Wong <e@80x24.org>
Sat, 10 Dec 2016 23:35:43 +0000 (23:35 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Dec 2016 23:44:10 +0000 (23:44 +0000)
commit53e8cfbe4e06e5ae6ad61fb7e9bd45804c253a72
treed5f6566a46d847e9f807450fbe10ef1b819bb29e
parent71d0581a309ca83cf3be538141435111db8ed290
search: retry document loading from Xapian

In addition to needing to retry enquire queries, we also need
to protect document loading from the Xapian DB and retry on
modification, as it seems to throw the same errors.

Checking the $@ ref for Search::Xapian::DatabaseModifiedError
is actually in the test suite for both the XS and SWIG Xapian
bindings, so we should be good as far as forward/backwards
compatibility.
lib/PublicInbox/Search.pm
lib/PublicInbox/SearchView.pm
lib/PublicInbox/View.pm