diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-07-16 11:42:02 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-07-16 13:27:40 -0400 |
commit | 7dc0964b68ed09aa1f24685883d5d93078389d1f (patch) | |
tree | 0ae636b4f193ca0ff1d6c19050d1b05afecbf4a5 | |
parent | fca120f299df7fd78fc1681993f4745d1bfc3ce2 (diff) |
fix ok response for set_security
-rw-r--r-- | src/fabric_db_meta.erl | 7 |
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}; |