From 61f84ebcf0d23542338bb7f45b6a4bef77744345 Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Tue, 22 Nov 2011 14:21:19 +0000 Subject: 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. --- src/rabbit_mirror_queue_slave.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl index 7182042d..73eaed14 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]), -- cgit v1.2.1