diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2012-05-16 17:39:07 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-05-16 17:39:07 +0100 |
commit | 2467ce5e3e9d59371b27ec1cb0846f05dfcc57f5 (patch) | |
tree | eac06320ccb65da4aa66a27df42acfa292f06d0a | |
parent | 7e9817d5738e4014704536b30a9698fb814344dc (diff) | |
download | rabbitmq-server-2467ce5e3e9d59371b27ec1cb0846f05dfcc57f5.tar.gz |
start supervisor children as, er, supervisors, not workers
-rw-r--r-- | src/rabbit.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index e48176f3..df009529 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()). |