1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Revert "when creating/adding a public ip, set the initial interface to be the first interface specified"

This reverts commit 4308935ba48ac7a29e7523315acf580019715f0f.

This fixes 16_ctdb_config_add_ip.sh test when run against local daemons. When
running against local daemons, if the interface is assigned as soon as an IP is
added, then takeover would never assign this IP address.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 06dfd13604d08910e07cbf927c338d7b9fce9a2f)
This commit is contained in:
Amitay Isaacs 2012-09-20 17:10:34 +10:00
parent 75347b8668
commit 3c1f656764

View File

@ -956,9 +956,6 @@ static int ctdb_add_public_address(struct ctdb_context *ctdb,
talloc_free(vnn);
return -1;
}
if (i == 0) {
vnn->iface = ctdb_find_iface(ctdb, vnn->ifaces[i]);
}
}
DLIST_ADD(ctdb->vnn, vnn);