Locks
Last updated
Last updated
Database locks are tools designed to stop multiple transactions from altering identical data simultaneously or to prevent a transaction from accessing data that is undergoing modification by another transaction.
You can acquire a lock programmatically by using Database Manager acquireLock method.
Example:
You can release a lock programmatically by using Database Manager releaseAllLocks method. You can also release all locks by using Database Manager releaseAllLocks method.
Example:
The admin page will show any open locks. If anything at all shows up here, it is likely a problem as locks should be only very briefly held.
Here you can manually release any locks that are held, by clicking the X
button corresponding to each lock. This can be used to avoid database issues.
Releasing locks can cause data integrity to be compromised! Locks are automatically released when clients close a solution or lose their connection.