Lines Matching refs:tdb_lock
256 static int tdb_lock(TDB_CONTEXT *tdb, int list, int ltype)
259 TDB_LOG((tdb, 0,"tdb_lock: invalid list %d for ltype=%d\n",
271 TDB_LOG((tdb, 0, "tdb_lock spinlock failed on list %d ltype=%d\n",
276 TDB_LOG((tdb, 0,"tdb_lock failed on list %d ltype=%d (%s)\n",
534 if (tdb_lock(tdb, i, F_WRLCK) != 0)
567 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0)
629 if (tdb_lock(tdb, -1, F_WRLCK) != 0)
774 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
846 if (tdb_lock(tdb, -1, F_WRLCK) == -1)
1005 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1)
1208 if (tdb_lock(tdb, tlock->hash, F_WRLCK) == -1)
1355 if (tdb_lock(tdb,tdb->travlocks.hash,F_WRLCK))
1437 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
1553 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
1906 if (tdb_lock(tdb, i, F_WRLCK))
1931 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
1941 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);