diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-11-28 10:41:59 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-11-28 10:41:59 +0000 |
commit | f6cfb1a6195aca0af66652b918160dcce02ce34b (patch) | |
tree | a1565031e52d492ec49ba1b4a88c7ebdfbb12b0c | |
parent | 6276d667177d915aff5c5b86e895a9b38b7ea2ae (diff) | |
download | rabbitmq-server-f6cfb1a6195aca0af66652b918160dcce02ce34b.tar.gz |
Rename this to indicate what it does, not the current circumstances in which it is called.bug26081
-rw-r--r-- | src/rabbit_mnesia.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl index b55d53b6..80fbcd68 100644 --- a/src/rabbit_mnesia.erl +++ b/src/rabbit_mnesia.erl @@ -582,13 +582,13 @@ check_cluster_consistency() -> throw(E) end. -check_cluster_consistency(Node, AlreadyFormed) -> +check_cluster_consistency(Node, CheckNodesConsistency) -> case rpc:call(Node, rabbit_mnesia, node_info, []) of {badrpc, _Reason} -> {error, not_found}; {_OTP, _Rabbit, {error, _}} -> {error, not_found}; - {OTP, Rabbit, {ok, Status}} when AlreadyFormed -> + {OTP, Rabbit, {ok, Status}} when CheckNodesConsistency -> case check_consistency(OTP, Rabbit, Node, Status) of {error, _} = E -> E; {ok, Res} -> {ok, Res} |