Lines Matching refs:lockrecs
232 struct tdb_lock_type *lockrecs; /* only real locks, all with count>0 */ member
430 if (tdb->lockrecs[i].list == list) { in _tdb_lock()
431 if (tdb->lockrecs[i].count == 0) { in _tdb_lock()
443 tdb->lockrecs[i].count++; in _tdb_lock()
449 tdb->lockrecs, in _tdb_lock()
450 sizeof(*tdb->lockrecs) * (tdb->num_lockrecs+1)); in _tdb_lock()
455 tdb->lockrecs = new_lck; in _tdb_lock()
467 tdb->lockrecs[tdb->num_lockrecs].list = list; in _tdb_lock()
468 tdb->lockrecs[tdb->num_lockrecs].count = 1; in _tdb_lock()
469 tdb->lockrecs[tdb->num_lockrecs].ltype = ltype; in _tdb_lock()
526 if (tdb->lockrecs[i].list == list) { in tdb_unlock()
527 lck = &tdb->lockrecs[i]; in tdb_unlock()
563 *lck = tdb->lockrecs[tdb->num_lockrecs-1]; in tdb_unlock()
573 SAFE_FREE(tdb->lockrecs); in tdb_unlock()
1726 tdb_brlock(tdb,FREELIST_TOP+4*tdb->lockrecs[i].list, in tdb_transaction_cancel()
1731 SAFE_FREE(tdb->lockrecs); in tdb_transaction_cancel()
4036 SAFE_FREE(tdb->lockrecs); in tdb_close()