summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-08-18 14:43:09 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-08-18 14:43:09 +0100
commitdf1f62dff03f0dd3cdda09e79fe9428407db2dc3 (patch)
treec1682bfe7bb28edbf5e7d2a51ff4d995df40abb8
parent24eda714caf64fb799c5a124c448c19ed015dad2 (diff)
downloadrabbitmq-server-bug24194.tar.gz
'stat' needs to be higher priority toobug24194
Since a typical consumer app will do a queue.declare "assertion" before basic.consume. The down side to this is that a queue.declare can now overtake a 'publish' and thus report incorrect message counts.
-rw-r--r--src/rabbit_amqqueue_process.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 30ab0457..e5038efe 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -822,6 +822,7 @@ prioritise_call(Msg, _From, _State) ->
consumers -> 9;
{basic_consume, _, _, _, _, _, _} -> 7;
{basic_cancel, _, _, _} -> 7;
+ stat -> 7;
_ -> 0
end.