diff options
| author | Rob Harrop <rob@rabbitmq.com> | 2011-06-13 14:54:10 +0100 |
|---|---|---|
| committer | Rob Harrop <rob@rabbitmq.com> | 2011-06-13 14:54:10 +0100 |
| commit | 2d763b61f6cf17e7dd150041df472b2fd9e0e5c5 (patch) | |
| tree | 83a882648f89c05d629b6d3f51f1c8e3d84f8917 /src | |
| parent | 465c0d9c41cf62f2ee295d08d1829232492cd041 (diff) | |
| download | rabbitmq-server-git-2d763b61f6cf17e7dd150041df472b2fd9e0e5c5.tar.gz | |
If a DLE is deleted after being declared in an x-dead-letter-exchange argument, this should be a fatal error. Also, if the DLE has no routable bindings for a message, we should just proceed as normal.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 1c3277d6e4..9e9d8f7544 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -769,14 +769,8 @@ maybe_dead_letter_queue(Reason, State = #q{ end. dead_letter_msg(Msg, Reason, State = #q{dead_letter_exchange = DLE}) -> - %% Should this be lookup_or_die? Do we really want to stop the - %% message from being discarded if the exchange is not there? Exchange = rabbit_exchange:lookup_or_die(DLE), - %% Should do something with the routing result here, but what? - %% Are we going to stop the message from being discarded if - %% unroutable? At the least we should write to the error log if - %% the routing fails. rabbit_exchange:publish( Exchange, rabbit_basic:delivery(false, false, none, |
