summaryrefslogtreecommitdiff
path: root/src/rabbit_upgrade.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-02-22 11:15:28 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-02-22 11:15:28 +0000
commita25d080a27495b7306a282086e3e2c1ccb7d86be (patch)
tree6bd0201b75d738a5ad5cba21cca79efd776288fe /src/rabbit_upgrade.erl
parenta4bd1338d37d6fc360c0fe8fe575d2d197de63e9 (diff)
downloadrabbitmq-server-a25d080a27495b7306a282086e3e2c1ccb7d86be.tar.gz
Make sure logging is working if we're about to actually do something.
Diffstat (limited to 'src/rabbit_upgrade.erl')
-rw-r--r--src/rabbit_upgrade.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_upgrade.erl b/src/rabbit_upgrade.erl
index 9f33fd03..dd19de19 100644
--- a/src/rabbit_upgrade.erl
+++ b/src/rabbit_upgrade.erl
@@ -107,6 +107,7 @@ maybe_upgrade_mnesia() ->
KnownDiscNodes = rabbit_mnesia:read_cluster_nodes_config(),
case upgrades_required(mnesia) of
version_not_available ->
+ rabbit:prepare(), %% Ensure we have logs for this
case AllNodes of
[_] -> ok;
_ -> die("Cluster upgrade needed but upgrading from "
@@ -116,6 +117,7 @@ maybe_upgrade_mnesia() ->
[] ->
ok;
Upgrades ->
+ rabbit:prepare(), %% Ensure we have logs for this
case upgrade_mode(AllNodes, KnownDiscNodes) of
primary -> primary_upgrade(Upgrades, AllNodes);
secondary -> secondary_upgrade(KnownDiscNodes)