diff options
author | Martin Schwenke <martin@meltin.net> | 2016-12-10 19:39:11 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2016-12-19 04:07:08 +0100 |
commit | 9b456bc7301927d515bab14ae7b875330da70f21 (patch) | |
tree | 0c8b3f2e7d9fdcdad0c3850d1385e10c7240d76c /ctdb/server/ipalloc_common.c | |
parent | c4eab456ab9f634cd7fa0ce36749432d36d03a2b (diff) | |
download | samba-9b456bc7301927d515bab14ae7b875330da70f21.tar.gz |
ctdb-takeover: NoIPTakeover is global across cluster
Instead of gathering the value from all nodes, just use the value on
the recovery master and have it affect all nodes.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/server/ipalloc_common.c')
-rw-r--r-- | ctdb/server/ipalloc_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/ipalloc_common.c b/ctdb/server/ipalloc_common.c index 9ccba71012e..6886a8183da 100644 --- a/ctdb/server/ipalloc_common.c +++ b/ctdb/server/ipalloc_common.c @@ -72,7 +72,7 @@ bool can_node_takeover_ip(struct ipalloc_state *ipalloc_state, int32_t pnn, struct public_ip_list *ip) { - if (ipalloc_state->noiptakeover[pnn]) { + if (ipalloc_state->no_ip_takeover) { return false; } |