Lines Matching refs:lockrecs
231 struct tdb_lock_type *lockrecs; /* only real locks, all with count>0 */ member
428 if (tdb->lockrecs[i].list == list) { in _tdb_lock()
429 if (tdb->lockrecs[i].count == 0) { in _tdb_lock()
441 tdb->lockrecs[i].count++; in _tdb_lock()
447 tdb->lockrecs, in _tdb_lock()
448 sizeof(*tdb->lockrecs) * (tdb->num_lockrecs+1)); in _tdb_lock()
453 tdb->lockrecs = new_lck; in _tdb_lock()
465 tdb->lockrecs[tdb->num_lockrecs].list = list; in _tdb_lock()
466 tdb->lockrecs[tdb->num_lockrecs].count = 1; in _tdb_lock()
467 tdb->lockrecs[tdb->num_lockrecs].ltype = ltype; in _tdb_lock()
524 if (tdb->lockrecs[i].list == list) { in tdb_unlock()
525 lck = &tdb->lockrecs[i]; in tdb_unlock()
561 *lck = tdb->lockrecs[tdb->num_lockrecs-1]; in tdb_unlock()
571 SAFE_FREE(tdb->lockrecs); in tdb_unlock()
1721 tdb_brlock(tdb,FREELIST_TOP+4*tdb->lockrecs[i].list, in tdb_transaction_cancel()
1726 SAFE_FREE(tdb->lockrecs); in tdb_transaction_cancel()
4031 SAFE_FREE(tdb->lockrecs); in tdb_close()