couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couch-replicator commit: updated refs/heads/master to a642119
Date Fri, 12 Sep 2014 11:50:12 GMT
Repository: couchdb-couch-replicator
Updated Branches:
  refs/heads/master 3cf0b131b -> a6421192e


Fix owner test


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/a6421192
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/a6421192
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/a6421192

Branch: refs/heads/master
Commit: a6421192e1a8ce6f66395124d0dd21a7522d47ab
Parents: 3cf0b13
Author: Robert Newson <rnewson@apache.org>
Authored: Fri Sep 12 12:49:56 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Sep 12 12:49:56 2014 +0100

----------------------------------------------------------------------
 src/couch_replicator_manager.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/a6421192/src/couch_replicator_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_manager.erl b/src/couch_replicator_manager.erl
index 411e9e1..19406e2 100644
--- a/src/couch_replicator_manager.erl
+++ b/src/couch_replicator_manager.erl
@@ -407,7 +407,7 @@ process_update(State, DbName, {Change}) ->
 
 owner(<<"shards/", _/binary>> = DbName, DocId) ->
     Live = [node()|nodes()],
-    Nodes = lists:sort([N || #shard{node=N} <- mem3:shards(DbName, DocId),
+    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) ->


Mime
View raw message