diff options
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) |