]> Sergey Matveev's repositories - public-inbox.git/commit
searchidx: avoid holding Xapian lock in cat-file
authorEric Wong <e@80x24.org>
Tue, 9 Aug 2016 00:41:37 +0000 (00:41 +0000)
committerEric Wong <e@80x24.org>
Tue, 9 Aug 2016 00:42:19 +0000 (00:42 +0000)
commit200fb98dd5d5f81344e9ab732d2c7ee3f92203e1
treec0c16b3435aa08fb5621e72de3f7542338213c08
parent3713c727cda431a0dc2865a7878c13ecf9f21851
searchidx: avoid holding Xapian lock in cat-file

We must ensure cat-file process is launched before Xapian
grabs lock, too.  Our use of "git cat-file --batch" has
the same problem as "git log" did, (which was fixed in
commit 3713c727cda431a0dc2865a7878c13ecf9f21851)
"searchidx: release Xapian FDs before spawning git log"
lib/PublicInbox/Git.pm
lib/PublicInbox/SearchIdx.pm