diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2013-10-31 12:05:50 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2013-10-31 12:05:50 +0000 |
| commit | a17e61eae4f83a6c1eb331c79d2f5bb659303da1 (patch) | |
| tree | 0b7590f3dcd00775c84e280d2391549806b0c00e | |
| parent | dad0aa96c3478200dc1041964c8bf643651d3675 (diff) | |
| download | rabbitmq-server-git-a17e61eae4f83a6c1eb331c79d2f5bb659303da1.tar.gz | |
Simplify
| -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]). |
