summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Videla <videlalvaro@gmail.com>2015-10-04 23:41:45 +0200
committerAlvaro Videla <videlalvaro@gmail.com>2015-10-05 00:26:45 +0200
commit332c389a308cd0e6679d434ea709b4490f33f721 (patch)
tree3b3214d18725ac1704899bcb41020d277550a272 /src
parent474520d049be58a0049b47a70cfe1c4a255ca248 (diff)
downloadrabbitmq-server-git-332c389a308cd0e6679d434ea709b4490f33f721.tar.gz
improves comment about sync batch order
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_mirror_queue_sync.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_mirror_queue_sync.erl b/src/rabbit_mirror_queue_sync.erl
index 7cfd0ab4b6..af4cb0cad5 100644
--- a/src/rabbit_mirror_queue_sync.erl
+++ b/src/rabbit_mirror_queue_sync.erl
@@ -350,8 +350,9 @@ slave_sync_loop(Args = {Ref, MRef, Syncer, BQ, UpdateRamDuration, Parent},
%% be batch_publish/2 and the ones that need to be
%% batch_publish_delivered/2.
%%
- %% We don't need to reverse BatchP1 and BatchPD1 since the
- %% foldl takes care of that.
+ %% The Batch has the messages in reverse order, but We
+ %% don't need to reverse them since BatchP1 and BatchPD1
+ %% will have the right order after the fold1.
{BatchP1, BatchPD1} =
lists:foldl(
fun ({Msg, Props, false}, {BatchP, BatchPD}) ->