couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [47/50] mem3 commit: updated refs/heads/master to 64c0c74
Date Thu, 28 Aug 2014 12:23:07 GMT
Remove mem3_util:owner


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

Branch: refs/heads/master
Commit: ff02b9a1f29da9ab7dc1e3185d73ea16d59d744e
Parents: 282e505
Author: Robert Newson <rnewson@apache.org>
Authored: Mon Jun 16 13:04:36 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Jul 23 18:52:09 2014 +0100

----------------------------------------------------------------------
 src/mem3_util.erl | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/ff02b9a1/src/mem3_util.erl
----------------------------------------------------------------------
diff --git a/src/mem3_util.erl b/src/mem3_util.erl
index be7302d..9c7449d 100644
--- a/src/mem3_util.erl
+++ b/src/mem3_util.erl
@@ -15,7 +15,7 @@
 -export([hash/1, name_shard/2, create_partition_map/5, build_shards/2,
     n_val/2, to_atom/1, to_integer/1, write_db_doc/1, delete_db_doc/1,
     shard_info/1, ensure_exists/1, open_db_doc/1]).
--export([owner/2, is_deleted/1, rotate_list/2]).
+-export([is_deleted/1, rotate_list/2]).
 
 %% do not use outside mem3.
 -export([build_ordered_shards/2, downcast/1]).
@@ -223,10 +223,6 @@ ensure_exists(DbName) ->
     end.
 
 
-owner(DbName, DocId) ->
-    Nodes = lists:sort([N || #shard{node=N} <- mem3:shards(DbName, DocId)]),
-    node() =:= hd(rotate_list({DbName, DocId}, Nodes)).
-
 is_deleted(Change) ->
     case couch_util:get_value(<<"deleted">>, Change) of
     undefined ->


Mime
View raw message