summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-11-22 14:21:19 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-11-22 14:21:19 +0000
commitbf657f51df2533696c7fe090c54b258f8448e90c (patch)
tree29c249e6438c02b38486f5848be93dfb701b5099
parent73a31048797f70aafae8ab7ff7c1aea5efbb8a4f (diff)
downloadrabbitmq-server-git-bf657f51df2533696c7fe090c54b258f8448e90c.tar.gz
Don't add message id to the set of msgs we've heard of from gm but not channel, if we actually *have* heard of it from the channel.
-rw-r--r--src/rabbit_mirror_queue_slave.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl
index 7182042d44..73eaed1476 100644
--- a/src/rabbit_mirror_queue_slave.erl
+++ b/src/rabbit_mirror_queue_slave.erl
@@ -725,7 +725,7 @@ process_instruction(
never ->
{MQ2, PendingCh, MS};
eventually ->
- {MQ2, sets:add_element(MsgId, PendingCh),
+ {MQ2, PendingCh,
dict:store(MsgId, {published, ChPid, MsgSeqNo}, MS)};
immediately ->
ok = rabbit_channel:confirm(ChPid, [MsgSeqNo]),