diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2016-04-18 18:07:43 +0200 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2016-04-18 18:07:43 +0200 |
| commit | bac2dac787b4ff1c58fae3bdde7d53eea6a0e94c (patch) | |
| tree | e92711168d6454e2e99e1e6baba03044c7a556d7 /src | |
| parent | 868176d779361e5235130038b09106c0c801453d (diff) | |
| download | rabbitmq-server-git-bac2dac787b4ff1c58fae3bdde7d53eea6a0e94c.tar.gz | |
rabbit_policy: Fix transaction return value in udpate_policies()
If a vhost is removed while policies are being updated, the transaction
returned `ok` while the calling code expects a tuple.
Fixes #755.
[#117522069]
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_policy.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_policy.erl b/src/rabbit_policy.erl index c297834689..a66f353b3f 100644 --- a/src/rabbit_policy.erl +++ b/src/rabbit_policy.erl @@ -245,7 +245,7 @@ update_policies(VHost) -> {'EXIT', Exit} -> exit(Exit); {error, {no_such_vhost, _}} -> - ok; %% [2] + {[], []}; %% [2] Policies -> {[update_exchange(X, Policies) || X <- rabbit_exchange:list(VHost)], |
