Lines Matching refs:tdb_lock
288 static int tdb_lock(TDB_CONTEXT *tdb, int list, int ltype)
291 TDB_LOG((tdb, 0,"tdb_lock: invalid list %d for ltype=%d\n",
303 TDB_LOG((tdb, 0, "tdb_lock spinlock failed on list %d ltype=%d\n",
308 TDB_LOG((tdb, 0,"tdb_lock failed on list %d ltype=%d (%s)\n",
566 if (tdb_lock(tdb, i, F_WRLCK) != 0)
599 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0)
661 if (tdb_lock(tdb, -1, F_WRLCK) != 0)
806 if (tdb_lock(tdb, -1, F_WRLCK) == -1) {
878 if (tdb_lock(tdb, -1, F_WRLCK) == -1)
1040 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1)
1243 if (tdb_lock(tdb, tlock->hash, F_WRLCK) == -1)
1397 if (tdb_lock(tdb,tdb->travlocks.hash,F_WRLCK))
1479 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
1595 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
1948 if (tdb_lock(tdb, i, F_WRLCK))
1973 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
1983 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);