+/* If we were threaded, we could wait for unlock, but we're not, so fail. */
+static bool owner_conflict(struct tdb_context *tdb, struct tdb_lock *lock)
+{
+ if (lock->owner != tdb) {
+ tdb_logerr(tdb, TDB_ERR_LOCK, TDB_LOG_USE_ERROR,
+ "Lock already owned by another opener");
+ return true;
+ }
+ return false;
+}
+