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 | f213c97ea21f77eae540fdf11b27033a8d800029 (patch) | |
| tree | a1565031e52d492ec49ba1b4a88c7ebdfbb12b0c /src | |
| parent | be965029b316969d7221b32014b9ce4fb0f050f5 (diff) | |
| download | rabbitmq-server-git-f213c97ea21f77eae540fdf11b27033a8d800029.tar.gz | |
Rename this to indicate what it does, not the current circumstances in which it is called.
Diffstat (limited to 'src')
| -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 b55d53b6f1..80fbcd6835 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} |
