summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Videla <videlalvaro@gmail.com>2015-10-13 23:43:30 +0200
committerAlvaro Videla <videlalvaro@gmail.com>2015-10-13 23:43:30 +0200
commitc4f5e57d7bb8c803ceaff720cb301f83a2f1735c (patch)
treee9c7f22f29446bf698b4ccf229b5a66ac8b1c426 /src
parenta647ec7a7e2199cf1d1165b8a813badeca220876 (diff)
downloadrabbitmq-server-git-c4f5e57d7bb8c803ceaff720cb301f83a2f1735c.tar.gz
brings comments up to date
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_variable_queue.erl10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index dfcfc8b3db..7c6d240f79 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -1027,12 +1027,10 @@ a(State = #vqstate { q1 = Q1, q2 = Q2, delta = Delta, q3 = Q3, q4 = Q4,
true = E2 or not ED,
%% if delta has messages then q3 cannot be empty. This is enforced
%% by paging, where min([?SEGMENT_ENTRY_COUNT, len(q3)]) messages
- %% are always kept on RAM, which is not valid for lazy queues.
- true = ED or not E3, %% does not hold for lazy queues.
- %% if the queue length is 0, then q3 and q4 must be empty. This
- %% does not hold for lazy queues which keep q1, q2, q3 and q4
- %% empty.
- true = LZ == (E3 and E4), %% does not hold for lazy queues.
+ %% are always kept on RAM.
+ true = ED or not E3,
+ %% if the queue length is 0, then q3 and q4 must be empty.
+ true = LZ == (E3 and E4),
true = Len >= 0,
true = Bytes >= 0,