summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-03-01 14:47:47 +0000
committerSimon MacMullen <simon@rabbitmq.com>2013-03-01 14:47:47 +0000
commit5ae47d98f0fe2f67503646316d7a0df186be80b6 (patch)
tree8ecd02a2b4e242c1a41baeac0ff0adbd17787acd
parent2279502946e436f40368d66477edafe5c6616f60 (diff)
downloadrabbitmq-server-5ae47d98f0fe2f67503646316d7a0df186be80b6.tar.gz
Rename this thing, to make space for bug 25471
-rw-r--r--ebin/rabbit_app.in2
-rw-r--r--src/rabbit_node_monitor.erl18
2 files changed, 13 insertions, 7 deletions
diff --git a/ebin/rabbit_app.in b/ebin/rabbit_app.in
index d08d502b..339fa69e 100644
--- a/ebin/rabbit_app.in
+++ b/ebin/rabbit_app.in
@@ -44,7 +44,7 @@
{log_levels, [{connection, info}]},
{ssl_cert_login_from, distinguished_name},
{reverse_dns_lookups, false},
- {cluster_cp_mode, false},
+ {cluster_partition_handling, ignore},
{tcp_listen_options, [binary,
{packet, raw},
{reuseaddr, true},
diff --git a/src/rabbit_node_monitor.erl b/src/rabbit_node_monitor.erl
index ad2003a5..5d587977 100644
--- a/src/rabbit_node_monitor.erl
+++ b/src/rabbit_node_monitor.erl
@@ -271,12 +271,18 @@ handle_dead_rabbit(Node) ->
ok = rabbit_amqqueue:on_node_down(Node),
ok = rabbit_alarm:on_node_down(Node),
ok = rabbit_mnesia:on_node_down(Node),
- case application:get_env(rabbit, cluster_cp_mode) of
- {ok, true} -> case majority() of
- true -> ok;
- false -> await_cluster_recovery()
- end;
- {ok, false} -> ok
+ case application:get_env(rabbit, cluster_partition_handling) of
+ {ok, pause_minority} ->
+ case majority() of
+ true -> ok;
+ false -> await_cluster_recovery()
+ end;
+ {ok, ignore} ->
+ ok;
+ {ok, Term} ->
+ rabbit_log:warning("cluster_partition_handling ~p unrecognised, "
+ "assuming 'ignore'~n", [Term]),
+ ok
end,
ok.