summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-09-28 16:29:53 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-09-28 16:29:53 +0100
commit94511c36e377a52bebdd8b84f297e1b89ed39d54 (patch)
tree6f8842ed74e0882897d199289f7177e46b85550b
parent8bef44da2fab437e4885dbb1bd087bd2b1b71c7b (diff)
downloadrabbitmq-server-94511c36e377a52bebdd8b84f297e1b89ed39d54.tar.gz
We want to catch here, if sup:start_child exits the rabbit_amqqueue:with we are in will convert any exit to not_found. Which is unlikely to be helpful
-rw-r--r--src/rabbit_mirror_queue_misc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_mirror_queue_misc.erl b/src/rabbit_mirror_queue_misc.erl
index 2e26ebfc..8aa860a7 100644
--- a/src/rabbit_mirror_queue_misc.erl
+++ b/src/rabbit_mirror_queue_misc.erl
@@ -163,7 +163,7 @@ add_mirror(QName, MirrorNode) ->
end).
start_child(Name, MirrorNode, Q) ->
- case rabbit_mirror_queue_slave_sup:start_child(MirrorNode, [Q]) of
+ case catch rabbit_mirror_queue_slave_sup:start_child(MirrorNode, [Q]) of
{ok, undefined} ->
%% this means the mirror process was
%% already running on the given node.