summaryrefslogtreecommitdiff
path: root/src/rabbit_mirror_queue_misc.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-08-19 15:33:24 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-08-19 15:33:24 +0100
commita34e13465725855a8707a8897a12088ec49d1a29 (patch)
tree3b9823826a311a300be9fe1ff5085121956480f8 /src/rabbit_mirror_queue_misc.erl
parent640fc3b30d9044e94b8466f233b58fe9dd5876cd (diff)
downloadrabbitmq-server-a34e13465725855a8707a8897a12088ec49d1a29.tar.gz
Another copy of the master_in_recovery check. Not sure that's very elegant, but I don't think we have much choice.
Diffstat (limited to 'src/rabbit_mirror_queue_misc.erl')
-rw-r--r--src/rabbit_mirror_queue_misc.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_mirror_queue_misc.erl b/src/rabbit_mirror_queue_misc.erl
index 86f73366..017a5187 100644
--- a/src/rabbit_mirror_queue_misc.erl
+++ b/src/rabbit_mirror_queue_misc.erl
@@ -220,7 +220,8 @@ start_child(Name, MirrorNode, Q, SyncMode) ->
rabbit_misc:with_exit_handler(
rabbit_misc:const(ok),
fun () ->
- SPid = rabbit_amqqueue_sup:start_queue_process(MirrorNode, Q),
+ SPid = rabbit_amqqueue_sup:start_queue_process(
+ MirrorNode, Q, slave),
log_info(Name, "Adding mirror on node ~p: ~p~n",
[MirrorNode, SPid]),
case SyncMode of