summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-04-22 09:47:09 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2013-04-22 09:47:09 +0100
commita566245a15d4551c6df60debb2892c2a8b6f3ebe (patch)
tree6e23c2ac8b286c535f068831cd202e645060b32d
parentbb7cf97480b0f524e9660e53ea0b6b6e6aced461 (diff)
downloadrabbitmq-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.erl3
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) ->