From 475e4d3f175a05acc4eab0b37fa9f52dbfecd2f8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 20 Apr 2018 03:27:38 +0000 Subject: 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") --- lib/PublicInbox/SearchIdx.pm | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3-24-ge0c7