diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2013-04-22 09:47:09 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-04-22 09:47:09 +0100 |
| commit | 1c2ee9db31837ac5cd15e47e3e9798a3ec08e4d3 (patch) | |
| tree | 6e23c2ac8b286c535f068831cd202e645060b32d | |
| parent | 156514bd38bb8b8d6aa7be2b7d26155d896d8d70 (diff) | |
| download | rabbitmq-server-git-1c2ee9db31837ac5cd15e47e3e9798a3ec08e4d3.tar.gz | |
fix a (harmless) bug spotted by dialyzer
the original code only worked since orddict:to_list is implemented as
the identity function.
| -rw-r--r-- | src/rabbit_vm.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_vm.erl b/src/rabbit_vm.erl index 49172adb0d..1e7bd38388 100644 --- a/src/rabbit_vm.erl +++ b/src/rabbit_vm.erl @@ -159,7 +159,8 @@ sum_processes(Names, Fun, Acc0) -> end, {NameAccs0, Acc0Dict}, processes()), %% these conversions aren't strictly necessary; we do them simply %% for the sake of encapsulating the representation. - {[orddict:to_list(NameAcc) || NameAcc <- orddict:to_list(NameAccs)], + {[{Name, orddict:to_list(Accs)} || + {Name, Accs} <- orddict:to_list(NameAccs)], orddict:to_list(OtherAcc)}. find_ancestor(Extra, D, Names) -> |
