mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-daemon: Don't update IP tree if DisableIPFailover is set
There won't be an IP tree. It is only ever initialised during a takeover run. The alternate to this would be to avoid sending CTDB_SRVID_RECD_UPDATE_IP in "ctdb moveip". This logic is probably best kept out of the CLI tool. Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
3c7bcea368
commit
5483d0c799
@ -4234,7 +4234,12 @@ int verify_remote_ip_allocation(struct ctdb_context *ctdb,
|
||||
|
||||
int update_ip_assignment_tree(struct ctdb_context *ctdb, struct ctdb_public_ip *ip)
|
||||
{
|
||||
struct ctdb_public_ip_list *tmp_ip;
|
||||
struct ctdb_public_ip_list *tmp_ip;
|
||||
|
||||
/* IP tree is never built if DisableIPFailover is set */
|
||||
if (ctdb->tunable.disable_ip_failover != 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (ctdb->ip_tree == NULL) {
|
||||
DEBUG(DEBUG_ERR,("No ctdb->ip_tree yet. Failed to update ip assignment\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user