nic...@nickyintheclouds.com
unread,Apr 23, 2012, 5:58:53 AM4/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Hi,
I'm currently using php 5 with the native MongoDB library and I've got
some troubles with the findandmodify command. I've 3 servers which
check a mongodb collection on the mongo server to get a task to do.
I'm using findandmodify command through db->command(...) in php. As
there are 3 servers, I use that command to do a transaction like
query.
However, sometimes the command does not respond and when I launch the
same query directly on the mongo server I do not have any answer, it
is waiting. Does it mean that a previous findandmodify query did not
finish correctly ?
When I restart the mongo service, the findandmodify query works again.
Any idea on the reason of the findandmodify lock ?
Thanks for your help,
Regards