diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-08-11 14:13:11 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-08-11 14:13:11 +0100 |
commit | 43add502cad23c416f37346ab4de68f01c8a496c (patch) | |
tree | 530674c374a06e6a5f2b08cb45a7469180e6a3bf /src/rabbit_mirror_queue_slave.erl | |
parent | 8edd8e3d4d549915bf93398c1d45bad46cc340bb (diff) | |
download | rabbitmq-server-43add502cad23c416f37346ab4de68f01c8a496c.tar.gz |
Remove unused var, and cosmetic (record whitespace trumps vertical alignment in my book ;) )
Diffstat (limited to 'src/rabbit_mirror_queue_slave.erl')
-rw-r--r-- | src/rabbit_mirror_queue_slave.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl index ad7f64c9..06400143 100644 --- a/src/rabbit_mirror_queue_slave.erl +++ b/src/rabbit_mirror_queue_slave.erl @@ -427,8 +427,7 @@ promote_me(From, #state { q = Q = #amqqueue { name = QName }, sender_queues = SQ, msg_id_ack = MA, msg_id_status = MS, - known_senders = KS, - master_pid = MPid}) -> + known_senders = KS}) -> rabbit_event:notify(queue_slave_promoted, [{pid, self()}, {name, QName}]), rabbit_log:info("Mirrored-queue (~s): Promoting slave ~s to master~n", @@ -897,7 +896,7 @@ maybe_store_ack(true, MsgId, AckTag, State = #state { msg_id_ack = MA, %% We intentionally leave out the head where a slave becomes %% unsynchronised: we assert that can never happen. -set_synchronised(true, State = #state {q = #amqqueue {name = QName}, +set_synchronised(true, State = #state {q = #amqqueue { name = QName }, synchronised = false }) -> rabbit_event:notify(queue_slave_synchronised, [{pid, self()}, {name, QName}]), |