Skip to content

Commit 85dcb49

Browse files
committed
Change rabbit_nodes:all_running/0 behaviour.
Make it return only nodes which are fully started instead of what mnesia thinks is started. In all places we use them, we assume they should be started. [#154569776]
1 parent b54e601 commit 85dcb49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rabbit_nodes.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,5 @@ set_cluster_name(Name, Username) ->
8585
ensure_epmd() ->
8686
rabbit_nodes_common:ensure_epmd().
8787

88-
all_running() -> rabbit_mnesia:cluster_nodes(running).
88+
all_running() -> [ Node || Node <- rabbit_mnesia:cluster_nodes(running),
89+
is_running(Node, rabbit) ].

0 commit comments

Comments
 (0)