Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5CEB18C73 for ; Tue, 2 Jun 2015 17:45:43 +0000 (UTC) Received: (qmail 9777 invoked by uid 500); 2 Jun 2015 17:45:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 9724 invoked by uid 500); 2 Jun 2015 17:45:43 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 9702 invoked by uid 99); 2 Jun 2015 17:45:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 17:45:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1D7EEE022E; Tue, 2 Jun 2015 17:45:43 +0000 (UTC) From: mikewallace1979 To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb-couch-replicator pull request: 2707 merge couch replicator... Content-Type: text/plain Message-Id: <20150602174543.1D7EEE022E@git1-us-west.apache.org> Date: Tue, 2 Jun 2015 17:45:43 +0000 (UTC) Github user mikewallace1979 commented on a diff in the pull request: https://github.com/apache/couchdb-couch-replicator/pull/11#discussion_r31549934 --- Diff: src/couch_replicator_manager.erl --- @@ -403,13 +442,10 @@ process_update(State, DbName, {Change}) -> end end. -owner(<<"shards/", _/binary>> = DbName, DocId) -> - Live = [node()|nodes()], +owner(<<"shards/", _/binary>> = DbName, DocId, Live) -> Nodes = lists:sort([N || #shard{node=N} <- mem3:shards(mem3:dbname(DbName), DocId), lists:member(N, Live)]), - node() =:= hd(mem3_util:rotate_list({DbName, DocId}, Nodes)); -owner(_DbName, _DocId) -> --- End diff -- Darn. So would the right thing be to return `node()` now? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---