summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorTim Watson <watson.timothy@gmail.com>2014-03-28 13:46:10 +0000
committerTim Watson <watson.timothy@gmail.com>2014-03-28 13:46:10 +0000
commita994cd8db832684b837ede757d7b2052a9593e57 (patch)
treebff9fd3e848e8cc4509ed2d5707cfd7a0de6bb25 /src/rabbit.erl
parent49a5a1efe3237e280d80827673e6534670900758 (diff)
downloadrabbitmq-server-a994cd8db832684b837ede757d7b2052a9593e57.tar.gz
Ensure start_app considers plugins when using RABBITMQ_NODE_ONLY
- always start all enabled plugins, regardless of startup type - only disable plugins that are currently running The latter incidentally fixes bug 24941.
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index b4943a30..6c08520f 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -311,8 +311,7 @@ start() ->
ok = ensure_working_log_handlers(),
rabbit_node_monitor:prepare_cluster_status_files(),
rabbit_mnesia:check_cluster_consistency(),
- start_apps(app_startup_order()),
- ok = log_broker_started(rabbit_plugins:active())
+ broker_start()
end).
boot() ->
@@ -327,12 +326,15 @@ boot() ->
%% the upgrade, since if we are a secondary node the
%% primary node will have forgotten us
rabbit_mnesia:check_cluster_consistency(),
- Plugins = rabbit_plugins:setup(),
- ToBeLoaded = Plugins ++ ?APPS,
- start_apps(ToBeLoaded),
- ok = log_broker_started(Plugins)
+ broker_start()
end).
+broker_start() ->
+ Plugins = rabbit_plugins:setup(),
+ ToBeLoaded = Plugins ++ ?APPS,
+ start_apps(ToBeLoaded),
+ ok = log_broker_started(rabbit_plugins:active()).
+
handle_app_error(Term) ->
fun(App, {bad_return, {_MFA, {'EXIT', {ExitReason, _}}}}) ->
throw({Term, App, ExitReason});