diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2018-03-16 09:29:51 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2018-03-16 17:14:13 +0300 |
| commit | 539ed2d9708d70dd299d4e5cab4d61b7cb3157e9 (patch) | |
| tree | ffc4ee559ee141d6bf2fd6c643e385f25e9be9c1 /src | |
| parent | fb0f71b3e5523e7a0f0e4348d44cc14f0bc1ebdc (diff) | |
| download | rabbitmq-server-git-539ed2d9708d70dd299d4e5cab4d61b7cb3157e9.tar.gz | |
Compile from scratch
(cherry picked from commit 117ad73be2557e93bb9cc9bbe123337aaa98c192)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_vhost_sup_sup.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_vhost_sup_sup.erl b/src/rabbit_vhost_sup_sup.erl index e036a82e64..3ce3201d6b 100644 --- a/src/rabbit_vhost_sup_sup.erl +++ b/src/rabbit_vhost_sup_sup.erl @@ -61,15 +61,15 @@ init([]) -> start_on_all_nodes(VHost) -> %% Do not try to start a vhost on booting peer nodes - AllBooted = [Node || Node <- rabbit_nodes:all_running(), rabbit:is_booted(Node)], - Nodes = [node() | AllBooted], - NodesStarted = [{Node, start_vhost(VHost, Node)} || Node <- Nodes], - Failures = lists:filter(fun + AllBooted = [Node || Node <- rabbit_nodes:all_running(), rabbit:is_booted(Node)], + Nodes = [node() | AllBooted], + Results = [{Node, start_vhost(VHost, Node)} || Node <- Nodes], + Failures = lists:filter(fun ({_, {ok, _}}) -> false; ({_, {error, {already_started, _}}}) -> false; (_) -> true end, - NodesStart), + Results), case Failures of [] -> ok; Errors -> {error, {failed_to_start_vhost_on_nodes, Errors}} |
