diff options
| author | Tim Fox <tim@rabbitmq.com> | 2011-02-11 17:46:30 +0000 |
|---|---|---|
| committer | Tim Fox <tim@rabbitmq.com> | 2011-02-11 17:46:30 +0000 |
| commit | 9380e46a44d2faec7278a0471a2cd6893f041885 (patch) | |
| tree | 725e7412b1ec486d3db68307ed54e6d4042a1005 /src | |
| parent | 18e02d755fa9d0d5279b76fcfbedc40bb06cc036 (diff) | |
| download | rabbitmq-server-git-9380e46a44d2faec7278a0471a2cd6893f041885.tar.gz | |
moved call for call deletion notification into Fun
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 496b206470..5788e7b367 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -122,6 +122,8 @@ terminate({shutdown, _}, State = #q{backing_queue = BQ}) -> terminate(_Reason, State = #q{backing_queue = BQ}) -> %% FIXME: How do we cancel active subscriptions? terminate_shutdown(fun (BQS) -> + rabbit_event:notify( + queue_deleted, [{pid, self()}]), BQS1 = BQ:delete_and_terminate(BQS), %% don't care if the internal delete %% doesn't return 'ok'. @@ -186,7 +188,6 @@ terminate_shutdown(Fun, State) -> end, BQS, all_ch_record()), [emit_consumer_deleted(Ch, CTag) || {Ch, CTag, _} <- consumers(State1)], - rabbit_event:notify(queue_deleted, [{pid, self()}]), State1#q{backing_queue_state = Fun(BQS1)} end. |
