diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-08-11 14:05:21 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-08-11 14:05:21 +0100 |
commit | 32f8c0081e383cc4631242464c090cb460cc325e (patch) | |
tree | 8cbedad6c68a3ddb64b87cc427f6f2e4f646df47 | |
parent | fd68285c5874644c278fbefad189b54f79869738 (diff) | |
download | rabbitmq-server-bug24289.tar.gz |
alignmentbug24289
-rw-r--r-- | src/rabbit_mnesia.erl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl index b50377c0..157e3c3c 100644 --- a/src/rabbit_mnesia.erl +++ b/src/rabbit_mnesia.erl @@ -327,18 +327,22 @@ ensure_mnesia_dir() -> ensure_mnesia_running() -> case mnesia:system_info(is_running) of - yes -> ok; - starting -> wait_for(mnesia_running), - ensure_mnesia_running(); + yes -> + ok; + starting -> + wait_for(mnesia_running), + ensure_mnesia_running(); Reason when Reason =:= no; Reason =:= stopping -> - throw({error, mnesia_not_running}) + throw({error, mnesia_not_running}) end. ensure_mnesia_not_running() -> case mnesia:system_info(is_running) of - no -> ok; - stopping -> wait_for(mnesia_not_running), - ensure_mnesia_not_running(); + no -> + ok; + stopping -> + wait_for(mnesia_not_running), + ensure_mnesia_not_running(); Reason when Reason =:= yes; Reason =:= starting -> throw({error, mnesia_unexpectedly_running}) end. |