Skip to content

Commit 4b58515

Browse files
committed
Add get empty stats as a new counter
Basic.get requests that return ok_empty used to be unaccounted for [#160280626]
1 parent 8f71523 commit 4b58515

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rabbit_channel.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ handle_method(#'basic.get'{queue = QueueNameBin, no_ack = NoAck},
11721172
State1 = monitor_delivering_queue(NoAck, QPid, QName, State),
11731173
{noreply, record_sent(none, not(NoAck), Msg, State1)};
11741174
empty ->
1175+
?INCR_STATS(queue_stats, QueueName, 1, get_empty, State),
11751176
{reply, #'basic.get_empty'{}, State}
11761177
end;
11771178

0 commit comments

Comments
 (0)