Skip to content

Commit 1ef3247

Browse files
Include current node to the to-start list
1 parent a4cb92a commit 1ef3247

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rabbit_vhost_sup_sup.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ init([]) ->
6060
[rabbit_vhost_sup_wrapper, rabbit_vhost_sup]}]}}.
6161

6262
start_on_all_nodes(VHost) ->
63-
NodesStart = [ {Node, start_vhost(VHost, Node)}
64-
|| Node <- rabbit_nodes:all_running(),
65-
%% Do not try to start a vhost on booting nodes.
66-
rabbit:is_booted(Node) ],
63+
%% Do not try to start a vhost on booting peer nodes
64+
AllBooted = [Node || Node <- rabbit_nodes:all_running(), rabbit:is_booted(Node)],
65+
Nodes = [node() | AllBooted],
66+
NodesStarted = [{Node, start_vhost(VHost, Node)} || Node <- Nodes],
6767
Failures = lists:filter(fun
6868
({_, {ok, _}}) -> false;
6969
({_, {error, {already_started, _}}}) -> false;

0 commit comments

Comments
 (0)