]> rtime.felk.cvut.cz Git - notmuch.git/commit
Use the Xapian::DB_RETRY_LOCK flag when available
authorIstvan Marko <notmuch@kismala.com>
Sun, 26 Jun 2016 15:29:43 +0000 (17:29 +0200)
committerDavid Bremner <david@tethera.net>
Wed, 29 Jun 2016 07:03:34 +0000 (09:03 +0200)
commit9b60dc3cd9224eddfe9bc5cf74eeaa5f0d599d04
treea577334efff26292a4321886f3862c276862f84b
parent496dccf44fadf4c8ee190e98d3cba54a8e828f97
Use the Xapian::DB_RETRY_LOCK flag when available

Xapian 1.3 has introduced the DB_RETRY_LOCK flag (Xapian bug
275). Detect it in configure and optionally use it. With this flag
commands that need the write lock will wait for their turn instead of
aborting when it's not immediately available.

Amended by db: allow disabling in configure
configure
lib/database.cc