summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-10-20 13:21:11 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-10-20 13:21:11 +0100
commitdf375c735ffcbbe6dead4327a0b499b6ca23e84f (patch)
tree92bb3fe097934413c1112fde5c0fadf250213727
parenteb65c76a94825be4b7089611c2bca382197bf617 (diff)
downloadrabbitmq-server-df375c735ffcbbe6dead4327a0b499b6ca23e84f.tar.gz
Load rabbit first.bug24510
-rw-r--r--src/rabbit.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index e98ca9be..1c11f5af 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -224,6 +224,9 @@ prepare() ->
start() ->
try
+ %% prepare/1 ends up looking at the rabbit app's env, so it
+ %% needs to be loaded.
+ ok = application:load(rabbit),
ok = prepare(),
ok = rabbit_misc:start_applications(application_load_order())
after