diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2011-06-28 15:57:24 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-06-28 15:57:24 +0100 |
| commit | 02940648492d2d4539737f234774bb407402d4f9 (patch) | |
| tree | 449686b7ae6c8931695a355f510f046df8d7b5c7 | |
| parent | 390c5ebf7340992085ebdc12289eb696c9a52af8 (diff) | |
| download | rabbitmq-server-git-02940648492d2d4539737f234774bb407402d4f9.tar.gz | |
All keys are optional. We must not omit a vertex just because it has not any dependencies
| -rw-r--r-- | src/rabbit.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index c8a60bd8a4..b523a26d9f 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -395,7 +395,13 @@ application_load_order() -> fun application_graph_vertex/2, fun application_graph_edge/2, [{App, Deps} || {App, _Desc, _Vsn} <- application:loaded_applications(), - {ok, Deps} <- [application:get_key(App, applications)]]), + begin + Deps = case application:get_key(App, applications) of + undefined -> []; + {ok, Lst} -> Lst + end, + true + end]), true = digraph:del_vertices( G, digraph:vertices(G) -- digraph_utils:reachable(?APPS, G)), Result = digraph_utils:topsort(G), |
