summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-06-26 20:49:17 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-06-26 20:49:17 +0100
commitc728037b96384160a7188258d6e9aff236dd87ca (patch)
tree39b484e980511f4a43476c98e12d9b5c9d8eed15
parent6728492cb87c0193802522048b4365a8b24f4953 (diff)
downloadrabbitmq-server-c728037b96384160a7188258d6e9aff236dd87ca.tar.gz
Notify the world when we become synchronised
-rw-r--r--src/rabbit_mirror_queue_slave.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl
index f4c950a9..a4a40a8c 100644
--- a/src/rabbit_mirror_queue_slave.erl
+++ b/src/rabbit_mirror_queue_slave.erl
@@ -893,6 +893,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 { synchronised = false }) ->
+ rabbit_event:notify(queue_slave_synchronised, [{pid, self()}]),
State #state { synchronised = true };
set_synchronised(true, State) ->
State;