summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Videla <videlalvaro@gmail.com>2015-10-05 02:36:35 +0200
committerAlvaro Videla <videlalvaro@gmail.com>2015-10-05 02:36:35 +0200
commit3776634e0da41f2d2b8888a33ce34b3010b238d2 (patch)
tree33fefbc78d92534cd84f5c047d00d40c7fc1f598 /src
parente0bb5df5b5ee83e6542df4471ffe3dfd695deb04 (diff)
downloadrabbitmq-server-git-3776634e0da41f2d2b8888a33ce34b3010b238d2.tar.gz
improves comment
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_mirror_queue_master.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_mirror_queue_master.erl b/src/rabbit_mirror_queue_master.erl
index 3b7d077b21..ab02351439 100644
--- a/src/rabbit_mirror_queue_master.erl
+++ b/src/rabbit_mirror_queue_master.erl
@@ -261,8 +261,9 @@ batch_publish(Publishes, ChPid, Flow,
MsgSizes),
BQS1 = BQ:batch_publish(Publishes2, ChPid, Flow, BQS),
ensure_monitoring(ChPid, State #state { backing_queue_state = BQS1 }).
-%% [0] when the slave process the publish instruction, it sets the
-%% IsDelivered flag to true.
+%% [0] When the slave process the publish instruction, it sets the
+%% IsDelivered flag to true, so to avoid iterating over the messages
+%% again at the slave, we do it here.
publish_delivered(Msg = #basic_message { id = MsgId }, MsgProps,
ChPid, Flow, State = #state { gm = GM,