summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-16 11:42:02 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-07-16 13:27:40 -0400
commit7dc0964b68ed09aa1f24685883d5d93078389d1f (patch)
tree0ae636b4f193ca0ff1d6c19050d1b05afecbf4a5
parentfca120f299df7fd78fc1681993f4745d1bfc3ce2 (diff)
fix ok response for set_security
-rw-r--r--src/fabric_db_meta.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fabric_db_meta.erl b/src/fabric_db_meta.erl
index 3b0ae109..ee15fc72 100644
--- a/src/fabric_db_meta.erl
+++ b/src/fabric_db_meta.erl
@@ -20,7 +20,12 @@ set_security(DbName, SecObj, Options) ->
Shards = mem3:shards(DbName),
Workers = fabric_util:submit_jobs(Shards, set_security, [SecObj, Options]),
Waiting = length(Workers) - 1,
- fabric_util:recv(Workers, #shard.ref, fun handle_message/3, Waiting).
+ case fabric_util:recv(Workers, #shard.ref, fun handle_message/3, Waiting) of
+ {ok, ok} ->
+ ok;
+ Error ->
+ Error
+ end.
handle_message(ok, _, 0) ->
{stop, ok};