summaryrefslogtreecommitdiff
path: root/src/rabbit_msg_store.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-10-17 14:32:30 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-10-17 14:32:30 +0100
commit06a4dba44907014874e9a2db16fc98166ecad507 (patch)
tree3c39a5b5c89b5035b9ca62eb66854ef6d6c76120 /src/rabbit_msg_store.erl
parentf822f30aa86c1b5db76aca0cb5aed4d96486591b (diff)
downloadrabbitmq-server-06a4dba44907014874e9a2db16fc98166ecad507.tar.gz
I find this clearer
Diffstat (limited to 'src/rabbit_msg_store.erl')
-rw-r--r--src/rabbit_msg_store.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rabbit_msg_store.erl b/src/rabbit_msg_store.erl
index a25245c9..67940963 100644
--- a/src/rabbit_msg_store.erl
+++ b/src/rabbit_msg_store.erl
@@ -803,12 +803,12 @@ handle_cast({write, CRef, MsgId},
ignored, State),
%% If all writes get eliminated, cur_file_cache_ets could
%% grow unbounded. To prevent that we delete the cache
- %% entry here, but only if the message isn't in the
- %% current file. That way reads of the message can
- %% continue to be done client side, from either the cache
- %% or the non-current files. If the message *is* in the
- %% current file then the cache entry will be removed by
- %% the normal logic for that in write_message/4 and
+ %% entry here, but only if the message hasn't been written
+ %% into the current file. That way reads of the message
+ %% can continue to be done client side, from either the
+ %% cache or the non-current files. If the message *is* in
+ %% the current file then the cache entry will be removed
+ %% by the normal logic for that in write_message/4 and
%% maybe_roll_to_new_file/2.
case index_lookup(MsgId, State1) of
[#msg_location { file = File }]