diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2011-02-22 11:15:28 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2011-02-22 11:15:28 +0000 |
commit | a25d080a27495b7306a282086e3e2c1ccb7d86be (patch) | |
tree | 6bd0201b75d738a5ad5cba21cca79efd776288fe /src/rabbit_upgrade.erl | |
parent | a4bd1338d37d6fc360c0fe8fe575d2d197de63e9 (diff) | |
download | rabbitmq-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.erl | 2 |
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) |