If two agents run this update query concurrently on a Mongo cluster, what is the expected value of updateVersion
at the end?
db.Task.findAndModify(
{
query:{"updateVersion":21},
update:{$inc:{"updateVersion":1}}
}
);
If the answer is "23", is there a way to have a guaranteed read/write synchronized operation?