>From the documentation, xdmp:document-locks function returns data that looks
>like this:
xdmp:document-locks("example.xml")
=> <lock:lock>
<lock:active-locks>
<lock:active-lock>
<lock:lock-type>write</lock:lockt-ype>
<lock:lock-scope>exclusive</lock:lock-scope>
<lock:depth>infinity</lock:depth>
<lock:owner>
http://example.com/~user
</lock:owner>
<lock:timeout>5000</lock:timeout>
<lock:lock-token>
http://marklogic.com/xdmp/locks/e71d4fae
</lock:lock-token>
<lock:timestamp>5234768</lock:timestamp>
<sec:user-id>52378234768</sec:user-id>
</lock:active-lock>
</lock:active-locks>
</lock:lock>
What I want to figure out is how much time is left for the lock. I see the
timeout duration, but I can't figure out how to use the timeout and the
timestamp to give me a time of when the lock will actually expire. That
timestamp doesn't look like a "time" stamp but rather a "query execution"
stamp. Is there some function that I can pass the "timestamp" to an get the
actual time that timestamp occurred?
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general