From df1f62dff03f0dd3cdda09e79fe9428407db2dc3 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 18 Aug 2011 14:43:09 +0100 Subject: 'stat' needs to be higher priority too 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. --- src/rabbit_amqqueue_process.erl | 1 + 1 file changed, 1 insertion(+) 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. -- cgit v1.2.1