diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2012-09-24 17:39:07 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-09-24 17:39:07 +0100 |
| commit | 66976f9bc12194eb81d002fe62399030d58aa939 (patch) | |
| tree | 74fb02ea56a654a57d4e8310c9fe6c2e678e6681 | |
| parent | 9c7a8993f202477a4e2ddd93e40df680d1b6f1be (diff) | |
| download | rabbitmq-server-git-66976f9bc12194eb81d002fe62399030d58aa939.tar.gz | |
appease dialyzer
| -rw-r--r-- | src/rabbit_mnesia.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl index c4920dc481..1a2c70fa8d 100644 --- a/src/rabbit_mnesia.erl +++ b/src/rabbit_mnesia.erl @@ -342,6 +342,8 @@ is_db_empty() -> is_clustered() -> AllNodes = cluster_nodes(all), AllNodes =/= [] andalso AllNodes =/= [node()]. +cluster_nodes(WhichNodes) -> cluster_status(WhichNodes). + %% This function is the actual source of information, since it gets %% the data from mnesia. Obviously it'll work only when mnesia is %% running. @@ -372,7 +374,7 @@ mnesia_nodes() -> end end. -cluster_nodes(WhichNodes) -> +cluster_status(WhichNodes) -> %% I don't want to call `running_nodes/1' unless if necessary, since it's %% pretty expensive. {AllNodes1, DiscNodes1, RunningNodesThunk} = @@ -653,7 +655,7 @@ on_node_down(_Node) -> end. running_disc_nodes() -> - {_AllNodes, DiscNodes, RunningNodes} = cluster_nodes(status), + {_AllNodes, DiscNodes, RunningNodes} = cluster_status(status), ordsets:to_list(ordsets:intersection(ordsets:from_list(DiscNodes), ordsets:from_list(RunningNodes))). |
