summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-11-18 16:11:03 +0000
committerMatthew Sackman <matthew@lshift.net>2009-11-18 16:11:03 +0000
commitc90d308c1b25d0f2d8b4e3df87c84ed3d1a15571 (patch)
tree91464eaf1223eb6f465ded9eb0fd2b4a08bd7b54
parentfd0810b35e361bee323386c60d1b69d4533c702e (diff)
downloadrabbitmq-server-git-c90d308c1b25d0f2d8b4e3df87c84ed3d1a15571.tar.gz
correction of documentation in absence of prefetcher
-rw-r--r--src/rabbit_variable_queue.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index b00a6059ea..c3ad54630f 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -84,11 +84,10 @@
%% The major invariant is that if the msg is to be a beta, q1 will be
%% empty, and if it is to be a gamma then both q1 and q2 will be empty.
%%
-%% When taking msgs out of the queue, if q4 is empty then we drain the
-%% prefetcher. If that doesn't help then we read directly from q3, or
-%% gamma, if q3 is empty. If q3 and gamma are empty then we have an
-%% invariant that q2 must be empty because q2 can only grow if gamma
-%% is non empty.
+%% When taking msgs out of the queue, if q4 is empty then we read
+%% directly from q3, or gamma, if q3 is empty. If q3 and gamma are
+%% empty then we have an invariant that q2 must be empty because q2
+%% can only grow if gamma is non empty.
%%
%% A further invariant is that if the queue is non empty, either q4 or
%% q3 contains at least one entry. I.e. we never allow gamma to