summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-05-16 17:39:07 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-05-16 17:39:07 +0100
commitb85e47e6d4a2599992bd2f08d67694223672996f (patch)
treeeac06320ccb65da4aa66a27df42acfa292f06d0a
parent3f5026784eb008175b9fbeab4ae8d010037dd4a8 (diff)
downloadrabbitmq-server-git-b85e47e6d4a2599992bd2f08d67694223672996f.tar.gz
start supervisor children as, er, supervisors, not workers
-rw-r--r--src/rabbit.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index e48176f30c..df00952946 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -60,7 +60,8 @@
-rabbit_boot_step({worker_pool,
[{description, "worker pool"},
- {mfa, {rabbit_sup, start_child, [worker_pool_sup]}},
+ {mfa, {rabbit_sup, start_supervisor_child,
+ [worker_pool_sup]}},
{requires, pre_boot},
{enables, external_infrastructure}]}).
@@ -539,7 +540,7 @@ boot_error(Format, Args) ->
boot_delegate() ->
{ok, Count} = application:get_env(rabbit, delegate_count),
- rabbit_sup:start_child(delegate_sup, [Count]).
+ rabbit_sup:start_supervisor_child(delegate_sup, [Count]).
recover() ->
rabbit_binding:recover(rabbit_exchange:recover(), rabbit_amqqueue:start()).