Created
April 25, 2018 13:42
-
-
Save ableasdale/349b02da3666451a1d753385d6394d56 to your computer and use it in GitHub Desktop.
MarkLogic: take a read lock on /thread-1-output.xml and will require an exclusive write lock on /thread-2-output.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let $read := fn:doc("/thread-1-output.xml") | |
return | |
xdmp:document-insert("/thread-2-output.xml",element root{"Thread 2 finished",element elapsed-time{xdmp:elapsed-time()}}) | |
; | |
fn:doc("/thread-2-output.xml") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment