summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-05-21 12:13:17 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-05-21 12:13:17 +0100
commit9c83a7408fad5844e1e0f5aa9e9397978bc77125 (patch)
tree231ca3e838ab5408a71a1ff7f4bd40aed1b855c1
parent7df8da424b45b1e63f2e0d6358c5a2ed07c34b41 (diff)
downloadrabbitmq-server-9c83a7408fad5844e1e0f5aa9e9397978bc77125.tar.gz
This may be the last Mnesia restart before we boot, so let's make sure the tables are there.
-rw-r--r--src/rabbit_upgrade.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_upgrade.erl b/src/rabbit_upgrade.erl
index fde0dbe1..cffd6ae0 100644
--- a/src/rabbit_upgrade.erl
+++ b/src/rabbit_upgrade.erl
@@ -247,6 +247,7 @@ apply_upgrades(Scope, Upgrades, Fun) ->
ok = rabbit_file:lock_file(lock_filename()),
info("~s upgrades: ~w to apply~n", [Scope, length(Upgrades)]),
rabbit_misc:ensure_ok(mnesia:start(), cannot_start_mnesia),
+ rabbit_table:wait_for_replicated(),
Fun(),
[apply_upgrade(Scope, Upgrade) || Upgrade <- Upgrades],
info("~s upgrades: All upgrades applied successfully~n", [Scope]),