Hi Prasanth,

  You meant , same doc locked for two different users even time difference is 
there ?. Did u not get   XDMP-LOCKCONFLICT exception .  Could you explain more 
clearly with test code to give correct solution .


Thanks and regards
Raja >>>

From: [email protected] 
[mailto:[email protected]] On Behalf Of Prasanth N V R
Sent: Tuesday, June 30, 2015 7:29 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] xdmp:lock-acquire

Hi,

We have doubt about xdmp:lock-acquire API

In my case I have multiple threads running in multiple servers and making xcc 
connection to ML and executing the adhoc query “xdmp:lock-acquire” to lock one 
particular file.

And each thread uses different userid/pwd for making xcc connections.

But at times we find ML giving empty sequence(which means successfully locked), 
when two Threads make xcc connection in milliseconds difference with respective 
userid/pwd to acquire lock.

Is xdmp:lock-acquire lock synchronized or is there any way to synchronize it in 
ML.

Thanks,
Prasanth

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to