diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-14 13:39:05 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-14 13:39:05 +0000 |
commit | 1c45e13da167b1cc01992521089efda440d29f65 (patch) | |
tree | df8ef2744328b8960ea3e04ea7ae02e9ca8af466 /src/rabbit_upgrade.erl | |
parent | 0b4ffb33067b778ebbe30fd2c4b0b9f9160c18c3 (diff) | |
download | rabbitmq-server-1c45e13da167b1cc01992521089efda440d29f65.tar.gz |
Cosmetic
Diffstat (limited to 'src/rabbit_upgrade.erl')
-rw-r--r-- | src/rabbit_upgrade.erl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rabbit_upgrade.erl b/src/rabbit_upgrade.erl index f279029a..bd3e829c 100644 --- a/src/rabbit_upgrade.erl +++ b/src/rabbit_upgrade.erl @@ -49,19 +49,19 @@ maybe_upgrade_mnesia() -> rabbit:prepare(), Nodes = rabbit_mnesia:all_clustered_nodes(), case upgrades_required(mnesia) of - [_|_] = Upgrades -> - case am_i_upgrader(Nodes) of - true -> primary_upgrade(Upgrades, Nodes); - false -> non_primary_upgrade(Nodes) - end; - [] -> - ok; version_not_available -> case Nodes of [_] -> ok; _ -> die("Cluster upgrade needed but upgrading from " "< 2.1.1.~n Unfortunately you will need to " "rebuild the cluster.", []) + end; + [] -> + ok; + Upgrades -> + case am_i_upgrader(Nodes) of + true -> primary_upgrade(Upgrades, Nodes); + false -> non_primary_upgrade(Nodes) end end. |