Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Ensure that the owner of a doc is also a host
BugzID: 24395
  • Loading branch information
kocolosk authored and rnewson committed Jul 23, 2014
1 parent aef5866 commit 19c3ee2cd9ea4941505db7f54fbf257e740586ae
Showing 1 changed file with 1 addition and 1 deletion.
@@ -224,7 +224,7 @@ ensure_exists(DbName) ->


owner(DbName, DocId) ->
Nodes = lists:sort([node()|nodes()]),
Nodes = lists:sort([N || #shard{node=N} <- mem3:shards(DbName, DocId)]),
node() =:= hd(rotate_list({DbName, DocId}, Nodes)).

is_deleted(Change) ->

0 comments on commit 19c3ee2

Please sign in to comment.