summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2020-07-01 01:50:01 +0300
committerMichael Klishin <michael@clojurewerkz.org>2020-07-01 01:50:01 +0300
commit8fa9c3c64adffb3be7ec59c17495447ba7cb9a9b (patch)
tree6fac781f6437cde24d329ad3c363882ca85ce384
parente697721b29c28e4e5ad0408ae4060720130efb9e (diff)
downloadrabbitmq-server-git-8fa9c3c64adffb3be7ec59c17495447ba7cb9a9b.tar.gz
rabbit_nodes:is_single_node_cluster/0: don't check running node count
A node with RabbitMQ stopped on it using `rabbitmqctl stop_app` would report no running nodes even in a single node cluster. References #2321
-rw-r--r--src/rabbit_nodes.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_nodes.erl b/src/rabbit_nodes.erl
index 7757519aab..d209798575 100644
--- a/src/rabbit_nodes.erl
+++ b/src/rabbit_nodes.erl
@@ -148,7 +148,7 @@ total_count() -> length(rabbit_mnesia:cluster_nodes(all)).
-spec is_single_node_cluster() -> boolean().
is_single_node_cluster() ->
- total_count() =:= 1 andalso running_count() =:= 1.
+ total_count() =:= 1.
-spec await_running_count(integer(), integer()) -> 'ok' | {'error', atom()}.
await_running_count(TargetCount, Timeout) ->