summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-03-23 17:23:12 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2011-03-23 17:23:12 +0000
commit330eb98c7bc0e3df4149807dba765263a06c2d3d (patch)
tree279090d4365fdfe3ea1be7bb2d83700065d132c7
parent21ac2b8a105560ab59b62c42d9ce6ad05ea9f34d (diff)
downloadrabbitmq-server-330eb98c7bc0e3df4149807dba765263a06c2d3d.tar.gz
Turns out it's very important that we do write the schema_version when call mnesia:clusterbug23425
-rw-r--r--src/rabbit_mnesia.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl
index 8bc89880..fbcf07ae 100644
--- a/src/rabbit_mnesia.erl
+++ b/src/rabbit_mnesia.erl
@@ -113,7 +113,8 @@ cluster(ClusterNodes, Force) ->
ensure_mnesia_dir(),
rabbit_misc:ensure_ok(mnesia:start(), cannot_start_mnesia),
try
- ok = init_db(ClusterNodes, Force, fun () -> ok end),
+ ok = init_db(ClusterNodes, Force,
+ fun maybe_upgrade_local_or_record_desired/0),
ok = create_cluster_nodes_config(ClusterNodes)
after
mnesia:stop()