scriptindex: Use DB_RETRY_LOCK to wait for lock
commit9d3c909486835f646c08a50e111b0a9882f5965f
authorOlly Betts <olly@survex.com>
Tue, 31 Oct 2017 04:00:50 +0000 (31 17:00 +1300)
committerOlly Betts <olly@survex.com>
Tue, 31 Oct 2017 04:00:50 +0000 (31 17:00 +1300)
tree313f73f00b8f8646b2436724ec80a2c145286894
parent2f90a1125a44741014757b81993726e2f966102a
scriptindex: Use DB_RETRY_LOCK to wait for lock

It's better than sleeping for a second and retrying as we currently
do - on most platforms it means we make a blocking request for the lock,
and even on platforms where that's not supported, we can sleep and retry
inside libxapian, and without having to throw and catch an exception
each time.
xapian-applications/omega/Makefile.am
xapian-applications/omega/scriptindex.cc