xdmp.transactionLocks( [host-id as (Number|String)], [txn-id as (Number|String)] ) as Object
Returns all URIs currently locked for read or write by a transaction. If the transaction is waiting to lock a URI, that URI is returned too.
http://marklogic.com/xdmp/privileges/my-transaction-locks
http://marklogic.com/xdmp/privileges/any-transaction-locks
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.