diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_upgrade_functions.erl | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/rabbit_upgrade_functions.erl b/src/rabbit_upgrade_functions.erl index d761332241..2886f91952 100644 --- a/src/rabbit_upgrade_functions.erl +++ b/src/rabbit_upgrade_functions.erl @@ -343,18 +343,17 @@ queue_decorators(Table) -> sync_slave_pids, policy, gm_pids, decorators]). internal_trace_log() -> - Xs = [<<"amq.rabbitmq.log">>, <<"amq.rabbitmq.trace">>], transform( rabbit_durable_exchange, - fun ({exchange, Name = {resource, _, _, NameBin}, Type, Dur, AutoDel, - Int0, Args, Scratches, Policy, Decorators}) -> - Int = case lists:member(NameBin, Xs) of - true -> true; - false -> Int0 - end, - {exchange, Name, Type, Dur, AutoDel, Int, Args, Scratches, Policy, - Decorators} + fun ({exchange, Name = {resource, _, _, <<"amq.rabbitmq.", _/binary>>}, + Type, Dur, AutoDel, _Int, Args, Scratches, Policy, Decorators}) -> + {exchange, Name, Type, Dur, AutoDel, true, Args, Scratches, + Policy, Decorators}; + (X) -> + X + end, + [name, type, durable, auto_delete, internal, arguments, scratches, policy, decorators]). |
