summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-12-29 23:48:54 +0000
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-12-29 23:48:54 +0000
commit25218fe465274d0f40800c118daab2a6d5ab40d6 (patch)
tree72c016e7115f9cda0e047e7d3cb417f5b506ffd4
parentfeb225f1a7a842d565047c1d1a91c74be053b548 (diff)
downloadrabbitmq-server-25218fe465274d0f40800c118daab2a6d5ab40d6.tar.gz
faulty logic
-rw-r--r--src/rabbit_amqqueue_process.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index ca77be1e..abd30a26 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -445,8 +445,9 @@ annote_confirms_with_channel(Guids, State) ->
group_confirms_by_channel([]) ->
[];
-group_confirms_by_channel([{Ch, Msg} | CMs]) ->
- group_confirms_by_channel(lists:usort(CMs), [{Ch, [Msg]}]).
+group_confirms_by_channel(CMs) ->
+ [{Ch, Msg} | CMs1] = lists:usort(CMs),
+ group_confirms_by_channel(CMs1, [{Ch, [Msg]}]).
group_confirms_by_channel([], Acc) ->
Acc;