Lines Matching refs:global_lock
230 struct tdb_lock_type global_lock; member
412 if (tdb->global_lock.count && in _tdb_lock()
413 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in _tdb_lock()
417 if (tdb->global_lock.count) { in _tdb_lock()
507 if (tdb->global_lock.count && in tdb_unlock()
508 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in tdb_unlock()
512 if (tdb->global_lock.count) { in tdb_unlock()
586 if (tdb->have_transaction_lock || tdb->global_lock.count) { in tdb_transaction_lock()
629 if (tdb->global_lock.count && tdb->global_lock.ltype == ltype) { in _tdb_lockall()
630 tdb->global_lock.count++; in _tdb_lockall()
634 if (tdb->global_lock.count) { in _tdb_lockall()
653 tdb->global_lock.count = 1; in _tdb_lockall()
654 tdb->global_lock.ltype = ltype; in _tdb_lockall()
673 if (tdb->global_lock.ltype != ltype || tdb->global_lock.count == 0) { in _tdb_unlockall()
677 if (tdb->global_lock.count > 1) { in _tdb_unlockall()
678 tdb->global_lock.count--; in _tdb_unlockall()
689 tdb->global_lock.count = 0; in _tdb_unlockall()
690 tdb->global_lock.ltype = 0; in _tdb_unlockall()
1603 if (tdb->num_locks != 0 || tdb->global_lock.count) { in tdb_transaction_start()
1717 if (tdb->global_lock.count != 0) { in tdb_transaction_cancel()
1719 tdb->global_lock.count = 0; in tdb_transaction_cancel()
2017 if (tdb->num_locks || tdb->global_lock.count) { in tdb_transaction_commit()
4074 if (tdb->num_locks != 0 || tdb->global_lock.count) { in tdb_reopen()