summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Videla <videlalvaro@gmail.com>2015-09-07 18:32:13 +0200
committerAlvaro Videla <videlalvaro@gmail.com>2015-09-07 18:32:13 +0200
commitfe4c7980f3fb06a2cdbd3ce3c9a60a41aa42ae1c (patch)
treee2ccc49e051a249a543b8154f998cd44d5e418a4 /src
parentbb515df0ea599bcf2dfd418117cbcb38a85cec6f (diff)
downloadrabbitmq-server-git-fe4c7980f3fb06a2cdbd3ce3c9a60a41aa42ae1c.tar.gz
updates comment
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_variable_queue.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index 7ed6a00c5a..0934a4651b 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -533,9 +533,9 @@ terminate(_Reason, State) ->
%% the only difference between purge and delete is that delete also
%% needs to delete everything that's been delivered and not ack'd.
delete_and_terminate(_Reason, State) ->
- %% There is no need to interact with qi at all - which we do as
- %% part of 'purge' and 'purge_pending_ack', other than deleting
- %% it.
+ %% Normally when we purge messages we interact with the qi by
+ %% issues delivers and acks for every purged message. In this case
+ %% we don't need to do that, so we just delete the qi.
State1 = purge_and_index_reset(State),
State2 = #vqstate { msg_store_clients = {MSCStateP, MSCStateT} } =
purge_pending_ack_delete_and_terminate(State1),