Well, the version number from the original feed can be passed into the
update. That way, when you computed the updated version and went to write
it back, the version number would be checked and used to ensure that no
other updates were done to that record.
In case of failure due to version number mismatch, you could re-read the
record and re-compute the changes, and then try again.
I believe that would ensure an atomic update. There is no record
lock/read/update/unlock facility, of course. Which is a good thing!
On Monday, March 18, 2013 11:07:37 AM UTC-4, Vineeth Mohan wrote:
What if i want to modify the original feed based on the new feed instead
of rejecting the second feed ?
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.