Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DE0E1035B for ; Thu, 10 Oct 2013 19:24:21 +0000 (UTC) Received: (qmail 19420 invoked by uid 500); 10 Oct 2013 19:24:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 19263 invoked by uid 500); 10 Oct 2013 19:24:11 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 19093 invoked by uid 99); 10 Oct 2013 19:24:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 19:24:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.214.45] (HELO mail-bk0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 19:24:02 +0000 Received: by mail-bk0-f45.google.com with SMTP id mx11so1163123bkb.18 for ; Thu, 10 Oct 2013 12:23:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=cEDfjnlOhj51U3ZF+FQZBCyL3uGXZskjdBL/uvrc4iE=; b=lRHSXILAhpiaTsfoLorrXIjKFiXhyzae04abrxff/uznGZFxRXJGiNzLFj1lTADjiC p7MhnCAQz+u0yVL9dH43k/SZz0YigQgqWa9vBwx+FKuZDPdr5XgUN6/af5osbH3DwM7+ mLkaVcvIJZljpmYjU1ndsOjrnnZ93CooozXiB7RNAiuUPfEPncroIP0xq4RUmDJ6C061 ADiUeT45s7bl9rIRstoAEMHLGYvMe6N/PpZx9UtQ3wnDo0HRn3lDQ6GVgS/zhbD/kyoV CaBmW8tJ5u9syBul0PiqabTAVMhuxIZoRG56E3Av+vm2oq2X1q7C1HJCB0X37mJ1PIak Vy5w== X-Gm-Message-State: ALoCoQnyfrzAGsysR/SwcPYk2dDAd1sMM46JHKml1nW55qQiwSSw9uDb3i4rm7K7tpSiMUjKm2US MIME-Version: 1.0 X-Received: by 10.205.22.71 with SMTP id qv7mr14016051bkb.20.1381433021636; Thu, 10 Oct 2013 12:23:41 -0700 (PDT) Received: by 10.205.86.195 with HTTP; Thu, 10 Oct 2013 12:23:41 -0700 (PDT) In-Reply-To: <35DE0BE1-AF3A-4E12-86F1-24D04C773172@couchbase.com> References: <35DE0BE1-AF3A-4E12-86F1-24D04C773172@couchbase.com> Date: Thu, 10 Oct 2013 20:23:41 +0100 Message-ID: Subject: Re: Documentation of winning-revision algorithm? From: Dale Harvey To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf30223bf58959c904e867f054 X-Virus-Checked: Checked by ClamAV on apache.org --20cf30223bf58959c904e867f054 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable https://github.com/apache/couchdb/blob/master/src/couchdb/couch_doc.erl#L35= 1 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 wrote: > > On Oct 10, 2013, at 9:57 AM, Benoit Chesneau bchesneau@gmail.com>> wrote: > > maybe that helps: > https://github.com/refuge/rcouch/wiki/Replication-Algorithm > > No, thanks; the replicator actually doesn=92t care about the > winning-revision algorithm, because it doesn=92t ever need to find a defa= ult > revision or resolve conflicts. It just adds revisions to the tree. > > =97Jens > --20cf30223bf58959c904e867f054--