summaryrefslogtreecommitdiff
path: root/src
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
commit0366817f197859e589b7bc2c812c9cc45ab64cec (patch)
tree6f8842ed74e0882897d199289f7177e46b85550b /src
parent2c373f430d998925ef51f937946f1cf816777c19 (diff)
downloadrabbitmq-server-git-0366817f197859e589b7bc2c812c9cc45ab64cec.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
Diffstat (limited to 'src')
-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 2e26ebfc5b..8aa860a7c9 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.