couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [45/50] mem3 commit: updated refs/heads/master to 64c0c74
Date Thu, 28 Aug 2014 12:23:05 GMT
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 <chewbranca@gmail.com>
Authored: Tue Apr 29 15:56:59 2014 -0700
Committer: Robert Newson <rnewson@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)).


Mime
View raw message