From 7dc0964b68ed09aa1f24685883d5d93078389d1f Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Fri, 16 Jul 2010 11:42:02 -0400 Subject: fix ok response for set_security --- src/fabric_db_meta.erl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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}; -- cgit v1.2.3