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 | a566245a15d4551c6df60debb2892c2a8b6f3ebe (patch) | |
tree | 6e23c2ac8b286c535f068831cd202e645060b32d | |
parent | bb7cf97480b0f524e9660e53ea0b6b6e6aced461 (diff) | |
download | rabbitmq-server-a566245a15d4551c6df60debb2892c2a8b6f3ebe.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 49172adb..1e7bd383 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) -> |