summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-16 15:10:20 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-07-16 15:10:20 -0400
commita3853280ae617e21817a5097c431f1e62d3dbd47 (patch)
treea154069b5867a8f3e7984720c7d1b692933c4551
parent7dc0964b68ed09aa1f24685883d5d93078389d1f (diff)
very stupid bug
-rw-r--r--src/fabric_util.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fabric_util.erl b/src/fabric_util.erl
index d4c4f5e2..639a32e7 100644
--- a/src/fabric_util.erl
+++ b/src/fabric_util.erl
@@ -83,7 +83,7 @@ get_db(DbName) ->
{[#shard{name = ShardName}|_], _} ->
% prefer node-local DBs
couch_db:open(ShardName, []);
- {[], #shard{node = Node, name = ShardName}} ->
+ {[], [#shard{node = Node, name = ShardName}|_]} ->
% but don't require them
rpc:call(Node, couch_db, open, [ShardName, []])
end.