- Reference >
- Database Commands >
- Diagnostic Commands >
- lockInfo
lockInfo¶
On this page
Definition¶
Syntax¶
To run, issue the command against the admin
database:
Output Fields¶
-
lockInfo
¶ An array of documents that report on the lock information. Each document includes:
-
lockInfo.
resourceId
¶ The resource on which the locks are being held or pending.
-
lockInfo.
granted
¶ An array of documents. Each document provides information on locks that are currently granted on the resource.
-
lockInfo.
pending
¶ An array of documents. Each document provides information on locks that are currently pending on the resource.
Lock Information¶
For each granted
or pending
lock
document, information include:
Field | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mode |
Specifies the lock mode:
|
||||||||||
convertMode |
Specifies the new lock mode for conversion. | ||||||||||
enqueueAtFront |
A boolean that indicates whether to put the lock at the front of the queue or the back in case of conflict. | ||||||||||
compatibleFirst |
A boolean that indicates to grant lock requests based on compatibility with already granted locks or to use the first-in-first-out (FIFO) order. | ||||||||||
debugInfo |
Information about the operation that issued the lock request. | ||||||||||
clientInfo |
A document detailing the client information. |