Lines Matching full:lock
152 /* lock offsets */
307 {TDB_ERR_NOLOCK, "Lock exists on other keys"},
322 /* file: lock.c */
332 note that a len of zero means lock to end of file
360 /* Generic lock error. errno set by fcntl.
376 upgrade a read lock to a write lock. This needs to be handled in a
402 /* lock a list in the database. list -1 is the alloc list */
411 /* a global lock allows us to avoid per chain locks */
457 /* Since fcntl locks don't nest, we do a lock for the first one,
475 /* lock a list in the database. list -1 is the alloc list */
487 /* lock a list in the database. list -1 is the alloc list. non-blocking lock */
506 /* a global lock allows us to avoid per chain locks */
543 * This lock has count==1 left, so we need to unlock it in the
582 get the transaction lock
591 TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_transaction_lock: failed to get transaction lock\n"));
600 release the transaction lock
618 /* lock/unlock entire database */
635 /* a global lock of a different type exists */
695 /* lock entire database with write lock */
701 /* lock entire database with write lock - mark only */
707 /* unlock entire database with write lock - unmark only */
713 /* lock entire database with write lock - nonblocking varient */
719 /* unlock entire database with write lock */
725 /* lock entire database with read lock */
731 /* lock entire database with read lock - nonblock varient */
737 /* unlock entire database with read lock */
743 /* lock/unlock one hash chain. This is meant to be used to reduce
750 /* lock/unlock one hash chain, non-blocking. This is meant to be used
787 /* record lock stops delete underneath */
796 an error to fail to get the lock here.
809 an error to fail to get the lock here.
944 will then be confirmed with the lock held
1058 TDB_LOG((tdb, TDB_DEBUG_ERROR, "lock failed in tdb_expand\n"));
1256 otherwise we can end up with deadlock (plus lack of lock nesting
1257 in posix locks would mean the lock is lost)
1259 - if the caller gains a lock during the transaction but doesn't
1271 although once a transaction is started then an exclusive lock is
1282 global lock is held. Automatically recover from the transaction
1625 /* get the transaction write lock. This is a blocking lock. As
1633 /* get a read lock from the freelist to the end of file. This
1634 is upgraded to a write lock during the commit */
1713 /* remove any global lock created during the transaction */
2021 /* upgrade the main transaction lock region to a write lock */
2029 /* get the global lock - this prevents new users attaching to the database
2032 TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_transaction_commit: failed to get global lock\n"));
2132 lock to prevent new processes attaching)
2288 /* Remove an element from the freelist. Must have alloc lock. */
2308 /* update a record tailer (must hold allocation lock) */
2326 /* Allocation and tailer lock */
2453 lock, otherwise tdb_free() might try to
2644 /* Uses traverse lock: 0 = finish, -1 = error, other = record offset */
2650 /* Lock each chain from the start one. */
2664 lock, so instead we get the lock and re-fetch the
2669 that we have done at least one fcntl lock at the
2786 /* Drop chain lock, call out */
2822 /* we need to get a read lock on the transaction lock here to
2823 cope with the lock ordering semantics of solaris10 */
2838 a write style traverse - needs to get the transaction lock to
2869 /* release any old lock */
2920 /* No previous element: do normal find, and lock record */
3134 /* As tdb_find, but if you succeed, keep the lock */
3207 * function. The parsing function is executed under the chain read lock, so it
3541 * have to lock it. Use the chance to purge all the DEAD records from
3542 * the hash chain under the freelist lock.
3862 /* internal databases don't mmap or lock, and start off cleared */
3881 TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_open_ex: failed to get global lock on %s: %s\n",
3957 we didn't get the initial exclusive lock as we need to let all other
3961 /* leave this lock in place to indicate it's in use */
3974 * global lock and hooking into the active list. */
4096 TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_reopen: failed to obtain active lock\n"));
4125 * it will keep it's active lock on a
4128 * add an active lock. This is essential