You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/28 14:23:05 UTC

[45/50] mem3 commit: updated refs/heads/master to 64c0c74

Allow mem3_shards:local to take a list or binary

BugzId: 29571


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

Branch: refs/heads/master
Commit: 7044f6c543ac6bbdbe0f4bb3f9b7a5d2ec0f206a
Parents: 8665201
Author: Russell Branca <ch...@gmail.com>
Authored: Tue Apr 29 15:56:59 2014 -0700
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Jul 23 18:51:52 2014 +0100

----------------------------------------------------------------------
 src/mem3_shards.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/7044f6c5/src/mem3_shards.erl
----------------------------------------------------------------------
diff --git a/src/mem3_shards.erl b/src/mem3_shards.erl
index 397fb74..4557e1c 100644
--- a/src/mem3_shards.erl
+++ b/src/mem3_shards.erl
@@ -107,6 +107,8 @@ get(DbName, Node, Range) ->
         [_|_] -> {error, duplicates}
     end.
 
+local(DbName) when is_list(DbName) ->
+    local(list_to_binary(DbName));
 local(DbName) ->
     Pred = fun(#shard{node=Node}) when Node == node() -> true; (_) -> false end,
     lists:filter(Pred, for_db(DbName)).