summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_mirror_queue_sync.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_mirror_queue_sync.erl b/src/rabbit_mirror_queue_sync.erl
index f9502219a6..c90a141fd8 100644
--- a/src/rabbit_mirror_queue_sync.erl
+++ b/src/rabbit_mirror_queue_sync.erl
@@ -219,6 +219,7 @@ slave_sync_loop(Args = {Ref, MRef, Syncer, BQ, UpdateRamDuration, Parent},
slave_sync_loop(Args, TRef, BQS1);
{'EXIT', Parent, Reason} ->
{stop, Reason, {TRef, BQS}};
+ %% If the master throws an exception
{'$gen_cast', {gm, {delete_and_terminate, Reason}}} ->
BQS1 = BQ:delete_and_terminate(Reason, BQS),
{stop, Reason, {TRef, BQS1}}