summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-02-03 17:47:04 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-02-03 17:47:04 +0000
commite8c8f4cd095c8d144d1e3167d1c4e124451d004a (patch)
treeaa2358cb2ba9df59759762c737c2fe16fa94d261
parent7fbbc29999f9e6173ac630aed5deb3c43192c26a (diff)
downloadrabbitmq-server-bug24408.tar.gz
This optimisation only makes sense when the message is neither mandatory nor confirmable!bug24408
-rw-r--r--src/rabbit_channel.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 45868ceb..e7f8b290 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1505,6 +1505,7 @@ notify_limiter(Limiter, Acked) ->
end.
deliver_to_queues({#delivery{message = #basic_message{exchange_name = XName},
+ confirm = false,
mandatory = false},
[]}, State) -> %% optimisation
?INCR_STATS([{exchange_stats, XName, 1}], publish, State),