Skip to content

Commit

Permalink
merge bug25351 into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
rade committed Dec 10, 2012
2 parents f759870 + f5d472a commit 387751f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/rabbit_vm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@ plugin_memory() ->
is_plugin(atom_to_list(App))]).

plugin_memory(App) ->
case catch application_master:get_child(
application_controller:get_master(App)) of
{Pid, _} -> sup_memory(Pid);
_ -> 0
case application_controller:get_master(App) of
undefined -> 0;
Master -> case application_master:get_child(Master) of
{Pid, _} when is_pid(Pid) -> sup_memory(Pid);
Pid when is_pid(Pid) -> sup_memory(Pid);
_ -> 0
end
end.

is_plugin("rabbitmq_" ++ _) -> true;
Expand Down

0 comments on commit 387751f

Please sign in to comment.