summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-05-21 13:17:57 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-05-21 13:17:57 +0100
commitd7002da58f3ab9eed44a453123889c124b3d305e (patch)
treed4826597453b9e0fb7a3cdb91bb577aa69fc156d
parentd7f3b76387a93c466b2495cc1fcf84f7c62f3d8d (diff)
downloadrabbitmq-server-bug25563.tar.gz
No, that broke upgrades on RAM nodes. Third time's the charm...bug25563
-rw-r--r--src/rabbit_mnesia.erl5
-rw-r--r--src/rabbit_upgrade.erl1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl
index 8cd976fa..6ea91086 100644
--- a/src/rabbit_mnesia.erl
+++ b/src/rabbit_mnesia.erl
@@ -465,10 +465,11 @@ init_db_and_upgrade(ClusterNodes, NodeType, CheckOtherNodes) ->
%% about the cluster
case NodeType of
ram -> start_mnesia(),
- change_extra_db_nodes(ClusterNodes, false),
- rabbit_table:wait_for_replicated();
+ change_extra_db_nodes(ClusterNodes, false);
disc -> ok
end,
+ %% ...and all nodes will need to wait for tables
+ rabbit_table:wait_for_replicated(),
ok.
init_db_with_mnesia(ClusterNodes, NodeType,
diff --git a/src/rabbit_upgrade.erl b/src/rabbit_upgrade.erl
index b9f25ef1..fde0dbe1 100644
--- a/src/rabbit_upgrade.erl
+++ b/src/rabbit_upgrade.erl
@@ -238,7 +238,6 @@ maybe_upgrade_local() ->
ok = apply_upgrades(local, Upgrades,
fun () -> ok end),
ensure_backup_removed(),
- rabbit_table:wait_for_replicated(),
ok
end.