]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidx: release lock again during v1 batch callback
authorEric Wong <e@80x24.org>
Fri, 20 Apr 2018 03:27:38 +0000 (03:27 +0000)
committerEric Wong <e@80x24.org>
Fri, 20 Apr 2018 03:27:54 +0000 (03:27 +0000)
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

index 7026fc4cbe76268aa443c5ee573f2860d4dfe02d..8c3bc2d3ce20ce48267b53381b9dd66b63387ad3 100644 (file)
@@ -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;