From: Eric Wong Date: Fri, 20 Apr 2018 03:27:38 +0000 (+0000) Subject: searchidx: release lock again during v1 batch callback X-Git-Tag: v1.1.0-pre1~16 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=475e4d3f175a05acc4eab0b37fa9f52dbfecd2f8 searchidx: release lock again during v1 batch callback Relaxing this lock during a v1 --reindex is important to keep messages showing up in -watch process in a timely manner. Looks like I deleted an extra line when doing the following for v2: s/xdb->commit_transaction/self->commit_txn_lazy/ Fixes: 35ff6bb106909b1c ("replace Xapian skeleton with SQLite overview DB") --- diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 7026fc4c..8c3bc2d3 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -698,6 +698,7 @@ sub _index_sync { } } $self->commit_txn_lazy; + $xdb = _xdb_release($self); # let another process do some work... < if (!$newest) { $xdb = $self->begin_txn_lazy;