diff options
| author | Ayanda Dube <ayanda.dube@erlang-solutions.com> | 2015-09-11 15:30:20 +0100 |
|---|---|---|
| committer | Ayanda Dube <ayanda.dube@erlang-solutions.com> | 2015-10-07 08:46:41 +0100 |
| commit | a318b5bf8679ade3d54e86f43eaa9c045a5a68a9 (patch) | |
| tree | ef8c7b78716d34884c33d9d1ee16317e99dcdcb7 /src | |
| parent | ebab0f780bbdeb41565c3759f3aca44a892b1a57 (diff) | |
| download | rabbitmq-server-git-a318b5bf8679ade3d54e86f43eaa9c045a5a68a9.tar.gz | |
Updates 'Pid' variable to 'AggregatorPid'.
Updates info_all/3 function and spec.
References #62
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_vhost.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rabbit_vhost.erl b/src/rabbit_vhost.erl index 0783eb61d7..8dd64ce22f 100644 --- a/src/rabbit_vhost.erl +++ b/src/rabbit_vhost.erl @@ -38,7 +38,7 @@ -spec(info_all/0 :: () -> [rabbit_types:infos()]). -spec(info_all/1 :: (rabbit_types:info_keys()) -> [rabbit_types:infos()]). -spec(info_all/3 :: (rabbit_types:info_keys(), reference(), pid()) -> - [rabbit_types:infos()]). + 'ok'). -endif. @@ -156,8 +156,8 @@ info(VHost, Items) -> infos(Items, VHost). info_all() -> info_all(?INFO_KEYS). info_all(Items) -> [info(VHost, Items) || VHost <- list()]. -info_all(Pid, Ref) -> info_all(?INFO_KEYS, Pid, Ref). -info_all(Items, Pid, Ref) -> [Pid ! {Ref, info(VHost, Items)} || - VHost <- list()], - Pid ! {Ref, finished}, - ok. +info_all(Ref, AggregatorPid) -> info_all(?INFO_KEYS, Ref, AggregatorPid). +info_all(Items, Ref, AggregatorPid) -> + [AggregatorPid ! {Ref, info(VHost, Items)} || VHost <- list()], + AggregatorPid ! {Ref, finished}, + ok. |
