summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiana Corbacho <diana@rabbitmq.com>2016-11-07 16:54:39 +0000
committerMichael Klishin <michael@clojurewerkz.org>2016-11-25 14:04:56 +0300
commit800eb4c52cf6bbdbac64a9fe28ae18cfa89a8339 (patch)
treeff018d9ae116ba5dbaff6e5dbe7975ac73c19908 /src
parent602719721962f2112e4e1d5cd131ce5e562cc459 (diff)
downloadrabbitmq-server-git-800eb4c52cf6bbdbac64a9fe28ae18cfa89a8339.tar.gz
Log Mnesia reconnection attempts
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_table.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit_table.erl b/src/rabbit_table.erl
index d7bac86705..b80c51dec4 100644
--- a/src/rabbit_table.erl
+++ b/src/rabbit_table.erl
@@ -78,6 +78,7 @@ wait(TableNames, Retry) ->
wait(TableNames, Timeout, Retries) ->
%% We might be in ctl here for offline ops, in which case we can't
%% get_env() for the rabbit app.
+ rabbit_log:info("Waiting for Mnesia tables for ~p seconds~n", [Timeout]),
Result = case mnesia:wait_for_tables(TableNames, Timeout) of
ok ->
ok;
@@ -91,6 +92,9 @@ wait(TableNames, Timeout, Retries) ->
ok;
{1, {error, _} = Error} ->
throw(Error);
+ {_, {error, Error}} ->
+ rabbit_log:warning("Error while waiting for Mnesia tables: ~p~n", [Error]),
+ wait(TableNames, Timeout, Retries - 1);
_ ->
wait(TableNames, Timeout, Retries - 1)
end.