From 32f8c0081e383cc4631242464c090cb460cc325e Mon Sep 17 00:00:00 2001 From: Alexandru Scvortov Date: Thu, 11 Aug 2011 14:05:21 +0100 Subject: alignment --- src/rabbit_mnesia.erl | 18 +++++++++++------- 1 file 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. -- cgit v1.2.1