summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-09-30 22:18:06 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-09-30 22:18:06 +0100
commit97bee7c008aec26fa9cae79b0f0d10307350b530 (patch)
treefb45915721f49aa29adbe2809544ed64fc2720cf /src
parent5383e9df16c1791d15057c2fbddf9a2a31ded74f (diff)
downloadrabbitmq-server-git-97bee7c008aec26fa9cae79b0f0d10307350b530.tar.gz
performance improving short cut
This gains 1-2% when running "MCM -a" with two Erlang schedulers
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 080002883a..e408f0bfd9 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1414,6 +1414,8 @@ send_nacks(MXs, State = #ch{tx_status = none}) ->
send_nacks(_, State) ->
maybe_complete_tx(State#ch{tx_status = failed}).
+send_confirms(State = #ch{tx_status = none, confirmed = []}) ->
+ State;
send_confirms(State = #ch{tx_status = none, confirmed = C}) ->
{MsgSeqNos, State1} =
lists:foldl(fun ({MsgSeqNo, ExchangeName}, {MSNs, State0}) ->