summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-03-17 16:37:54 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2011-03-17 16:37:54 +0000
commiteeda0bc1acd1be613c636a041b76dcce0b9b938a (patch)
treee6316b57b4b85af991774215c8415cdc6d9b4766 /src/rabbit.erl
parent3b05ad9f71030f8f9ee3a571cbe8ec1c7c88c2d4 (diff)
downloadrabbitmq-server-git-eeda0bc1acd1be613c636a041b76dcce0b9b938a.tar.gz
Improve symmetry: if we write the running_disc_nodes on rabbit shutdown, we should nuke it on rabbit startup. This then means that the prelaunch thingy is always run with the previously_running_disc_nodes file present. I believe this makes no semantic changes, but the improved symmetry is worth having
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 5f88b9972d..1361d0f4ce 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -233,6 +233,7 @@ rotate_logs(BinarySuffix) ->
start(normal, []) ->
case erts_version_check() of
ok ->
+ ok = rabbit_mnesia:delete_previously_running_disc_nodes(),
{ok, SupPid} = rabbit_sup:start_link(),
true = register(rabbit, self()),