Database::locked(): consistent error if not supported
commitd90f38a9c0812188107b2bcfb0692d49af4c2438
authorOlly Betts <olly@survex.com>
Wed, 13 Dec 2017 23:05:43 +0000 (14 12:05 +1300)
committerOlly Betts <olly@survex.com>
Wed, 13 Dec 2017 23:05:43 +0000 (14 12:05 +1300)
treee29429cffba45a3663a19824890b4582c1713b44
parent2d6995c323f1c6706d76a34a3b314beb8a730662
Database::locked(): consistent error if not supported

On some platforms we can't test for a database lock without trying
to take it.  In such situations we now consistently throw
FeatureUnavailableError (which is the most appropriate really).
Previously GNU Hurd threw DatabaseLockError while platforms which didn't
use fcntl() locking at all threw UnimplementedError.
xapian-core/backends/flint_lock.cc
xapian-core/tests/api_backend.cc