incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Harvey <d...@arandomurl.com>
Subject Re: Documentation of winning-revision algorithm?
Date Thu, 10 Oct 2013 19:23:41 GMT
https://github.com/apache/couchdb/blob/master/src/couchdb/couch_doc.erl#L351

Yup, looking at he implementation its sorting tuples of the form, {true, 2,
'revid'}, which matches what you explained, looks like my pouch
implementation is also the same

https://github.com/daleharvey/pouchdb/blob/master/src/pouch.merge.js#L199


On 10 October 2013 20:12, Jens Alfke <jens@couchbase.com> wrote:

>
> On Oct 10, 2013, at 9:57 AM, Benoit Chesneau <bchesneau@gmail.com<mailto:
> bchesneau@gmail.com>> wrote:
>
> maybe that helps:
> https://github.com/refuge/rcouch/wiki/Replication-Algorithm
>
> No, thanks; the replicator actually doesn’t care about the
> winning-revision algorithm, because it doesn’t ever need to find a default
> revision or resolve conflicts. It just adds revisions to the tree.
>
> —Jens
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message