diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-08-12 14:45:43 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-08-12 14:45:43 +0100 |
| commit | f7677567c089ccbc70b97af03e342c33f07ac9f3 (patch) | |
| tree | 0b4b57caaefdee5a740b0f8642414e10e2cdbc9a | |
| parent | 97ffcc91ebac71ca0ad0124223eac7b258fabbb5 (diff) | |
| download | rabbitmq-server-git-f7677567c089ccbc70b97af03e342c33f07ac9f3.tar.gz | |
And max-length is implemented in terms of messages_ready, so do the same for max-bytes
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 78bd367c5f..d3c06286b1 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -582,7 +582,7 @@ over_max_length(#q{max_length = MaxLen, max_bytes = MaxBytes, backing_queue = BQ, backing_queue_state = BQS}) -> - BQ:len(BQS) > MaxLen orelse BQ:info(message_bytes, BQS) > MaxBytes. + BQ:len(BQS) > MaxLen orelse BQ:info(message_bytes_ready, BQS) > MaxBytes. requeue_and_run(AckTags, State = #q{backing_queue = BQ, backing_queue_state = BQS}) -> |
