diff options
| author | Matthias Radestock <matthias@lshift.net> | 2009-12-18 19:30:44 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@lshift.net> | 2009-12-18 19:30:44 +0000 |
| commit | 21e43c8673020db8a6a7dc02c6856ac47a77fbd6 (patch) | |
| tree | 05303250634ca38ac9c1107993407b3ea99bbd73 /scripts | |
| parent | 21b9b3d0d7c337fd562e2d03610a7fd8ea1b03dc (diff) | |
| download | rabbitmq-server-git-21e43c8673020db8a6a7dc02c6856ac47a77fbd6.tar.gz | |
not_found error on attempt to declare a queue that exists on a stopped node
this prevents loss or duplication of messages when that node recovers
I considered returing {ok, Q} | {error, not_found} from
internal_declare (and subsequently declare), and let the channel deal
with throwing the appropriate amqp error. But
- that would be a change to a crucial internal API that is used by
quite a few extensions
- it would make the return type inconsistent with
rabbit_exchange:declare, which too only returns X, not {ok, X}.
- the rabbit_amqqueue module already knows about amqp errors - see
with_or_die. So this is not breaking any concern separation.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
