Session Wide LockingSession wide locking is based on the principle that ctdbLock() sets the current lock mode. When locks are activated, every record read of all active tables of all active databases associated with the session are automatically locked with the current lock mode. ctdbUnlock() releases all locks acquired since the last ctdbLock() call and clears the current lock mode. ctdbIsLockActive() indicates if a session wide lock mode is set. ctdbGetLockMode() retrieves the current session wide lock mode. If no session wide locks are active, ctdbGetLockMode() returns CTLOCK_FREE. Please refer to "Data Integrity" for detailed description of c-treeDB API for transaction processing and locking. |
|||