diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2013-05-09 12:16:46 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2013-05-09 12:16:46 +0100 |
commit | 4e852bcd7f868c4637d886c71a25f5be1a6bbe9d (patch) | |
tree | e29107a1a0d0836c5cecca1b3e215fab0efab53e /src/rabbit_runtime_parameters.erl | |
parent | dbaf442742bd673d4ee4ac98cfd7ffe760ba68a2 (diff) | |
download | rabbitmq-server-4e852bcd7f868c4637d886c71a25f5be1a6bbe9d.tar.gz |
Validate on clear.
Diffstat (limited to 'src/rabbit_runtime_parameters.erl')
-rw-r--r-- | src/rabbit_runtime_parameters.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_runtime_parameters.erl b/src/rabbit_runtime_parameters.erl index a9427ab4..d90b7c34 100644 --- a/src/rabbit_runtime_parameters.erl +++ b/src/rabbit_runtime_parameters.erl @@ -127,10 +127,10 @@ clear_any(VHost, Component, Name) -> end. mnesia_clear(VHost, Component, Name) -> - ok = rabbit_misc:execute_mnesia_transaction( - fun () -> - ok = mnesia:delete(?TABLE, {VHost, Component, Name}, write) - end). + F = fun () -> + ok = mnesia:delete(?TABLE, {VHost, Component, Name}, write) + end, + ok = rabbit_misc:execute_mnesia_transaction(rabbit_vhost:with(VHost, F)). list() -> [p(P) || #runtime_parameters{ key = {_VHost, Comp, _Name}} = P <- |