-
The snapshot command can view the current node resource scheduling usage, the command is as follows:
db.snapshot(SDB_SNAP_TRANSACTIONS);
-
Output example
{ …… "WaitLock": { "CSID": -1, "CLID": 65535, "recordID": -1, "recordOffset": -1 }, "TransactionLocksNum": 3, "GotLocks": [ { "CSID": 1, "CLID": 0, "recordID": -1, "recordOffset": -1 } ], …… }
-
WaitLock: The transaction is waiting to acquire the lock
-
GotLocks: locks held by the transaction
-
Lock object content description
Lock object CSID CLID recordID recordOffset No lock -1 65535 -1 -1 Collection space lock >= 0 65535 -1 -1 Collection lock >= 0 >= 0 -1 -1 Row lock >= 0 >= 0 >= 0 >= 0
For more information, please visit the official website of Jushan Database