summaryrefslogtreecommitdiff
path: root/src/rabbit_channel.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-03-25 11:58:41 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-03-25 11:58:41 +0000
commit7dc15081000f8fe30167e3082001542b3e010015 (patch)
treed5a5e61e1199863f6fdf95fe8a0a8b727492bf1f /src/rabbit_channel.erl
parent40cf496665c0968e27cee8775183ec221facdd28 (diff)
downloadrabbitmq-server-7dc15081000f8fe30167e3082001542b3e010015.tar.gz
Swap the default value for cancel-on-ha-failover.
Diffstat (limited to 'src/rabbit_channel.erl')
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index e047db60..e59eca32 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1284,8 +1284,8 @@ cancel_consumer(CTag, QName, State = #ch{consumer_mapping = CMap}) ->
queue_down_consumer_action(CTag, CMap) ->
{_, {_, _, _, Args} = ConsumeSpec} = dict:fetch(CTag, CMap),
case rabbit_misc:table_lookup(Args, <<"cancel-on-ha-failover">>) of
- {bool, false} -> {recover, ConsumeSpec};
- _ -> remove
+ {bool, true} -> remove;
+ _ -> {recover, ConsumeSpec}
end.
handle_delivering_queue_down(QPid, State = #ch{delivering_queues = DQ}) ->