Lines Matching refs:locked
262 if (tdb->locked[list+1].count == 0) {
274 tdb->locked[list+1].ltype = ltype;
276 tdb->locked[list+1].count++;
296 if (tdb->locked[list+1].count==0) {
301 if (tdb->locked[list+1].count == 1) {
311 tdb->locked[list+1].count--;
1007 /* If they do lockkeys, check that this hash is one they locked */
1371 /* Is locked key the old key? If so, traverse will be reliable. */
1521 on failure return -1. Record must be locked before calling.
1683 int rev = 0, locked;
1741 if ((locked = (tdb_brlock(tdb, ACTIVE_LOCK, F_WRLCK, F_SETLK, 0) == 0))
1793 tdb->locked = calloc(tdb->header.hash_size+1, sizeof(tdb->locked[0]));
1794 if (!tdb->locked) {
1802 if (locked) {
1846 SAFE_FREE(tdb->locked);
1872 SAFE_FREE(tdb->locked);
1925 /* Can't lock more keys if already locked */
1955 /* Unlock the keys previously locked by tdb_lockkeys() */
1967 contention - it cannot guarantee how many records will be locked */