summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2019-04-24 18:56:21 +0300
committerMichael Klishin <mklishin@pivotal.io>2019-04-24 18:56:21 +0300
commit74e7a392272880925337bde6f1c8c927e47f3bc2 (patch)
tree8f207fdfca1352d626da1d6d7bf13da79bd2d9af
parent733a1b130a225fdc34d45e9cfd54d62aae6cc53e (diff)
downloadrabbitmq-server-git-74e7a392272880925337bde6f1c8c927e47f3bc2.tar.gz
Increment drop_unroutable un deliver_to_queues/2
Some code paths only go through it, e.g. when a transaction commits. Pair: @dcorbacho.
-rw-r--r--src/rabbit_channel.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 222ead65fc..d04e45ca93 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -2061,8 +2061,9 @@ notify_limiter(Limiter, Acked) ->
deliver_to_queues({#delivery{message = #basic_message{exchange_name = XName},
confirm = false,
mandatory = false},
- []}, State) -> %% optimisation
+ _RoutedToQs = []}, State) -> %% optimisation
?INCR_STATS(exchange_stats, XName, 1, publish, State),
+ ?INCR_STATS(exchange_stats, XName, 1, drop_unroutable, State),
State;
deliver_to_queues({Delivery = #delivery{message = Message = #basic_message{
exchange_name = XName},