summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-01-03 16:51:09 +0000
committerSimon MacMullen <simon@rabbitmq.com>2013-01-03 16:51:09 +0000
commitf713c839e78b451f060a1ea784d0f7b3b2e360d2 (patch)
tree3c664587abbeaa70e0d60d0452d46648f03ebf5e
parentc6f09ee2749801d133350a8e048896b82a860083 (diff)
downloadrabbitmq-server-f713c839e78b451f060a1ea784d0f7b3b2e360d2.tar.gz
Consistency with the real slave.
-rw-r--r--src/rabbit_mirror_queue_sync.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_mirror_queue_sync.erl b/src/rabbit_mirror_queue_sync.erl
index c90a141f..040f3c9b 100644
--- a/src/rabbit_mirror_queue_sync.erl
+++ b/src/rabbit_mirror_queue_sync.erl
@@ -221,6 +221,6 @@ slave_sync_loop(Args = {Ref, MRef, Syncer, BQ, UpdateRamDuration, Parent},
{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}}
+ BQ:delete_and_terminate(Reason, BQS),
+ {stop, Reason, {TRef, undefined}}
end.