incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <randall.le...@gmail.com>
Subject Re: Write race conditions, working without _rev
Date Thu, 18 Nov 2010 01:14:33 GMT
On Wed, Nov 17, 2010 at 16:15, Chad George <chad@mgproducts.com> wrote:
> I've been wondering about this for a while, when two update requests for the
> same document come to couchdb nearly simultaneously what exactly happens?
>
> Is it possible for both requests to get the same revision of the document to
> update or is there some mechanism to force the updates to occur in series?
>

There is a mechanism. The message passing within the Erlang runtime
guarantee an ordering of messages to the update process.
It is impossible for both updates to occur.

Mime
View raw message