diff options
author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-01-25 12:33:33 +0000 |
---|---|---|
committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-01-25 12:33:33 +0000 |
commit | 998fbf33a760f9e41621b0999ddfac7c5f3fcc19 (patch) | |
tree | c003ea62e40ec14cac85ecd846ed6ba50ec6cfed | |
parent | 45dd22501ccfdda72ce089ade71c9442306088a3 (diff) | |
download | rabbitmq-server-998fbf33a760f9e41621b0999ddfac7c5f3fcc19.tar.gz |
Flatten the list of lists.
-rw-r--r-- | src/rabbit_channel.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 275de0f4..474a5a91 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -1089,7 +1089,7 @@ handle_method(#'tx.rollback'{}, _, #ch{tx_status = none}) -> handle_method(#'tx.rollback'{}, _, State = #ch{unacked_message_q = UAMQ, uncommitted_acks = TAL, uncommitted_nacks = TNL}) -> - TNL1 = lists:map(fun ({_, L}) -> L end, TNL), + TNL1 = lists:append(lists:map(fun ({_, L}) -> L end, TNL)), UAMQ1 = queue:from_list(lists:usort(TAL ++ TNL1 ++ queue:to_list(UAMQ))), {reply, #'tx.rollback_ok'{}, new_tx(State#ch{unacked_message_q = UAMQ1})}; |