mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
when we load the public address file, at the same time check if we are already hosting the public address, if so, set ourselves up as the pnn for that address
(This used to be ctdb commit 0f2a2dac91a61be188c3578c8bb89d47cbf9a0f8)
This commit is contained in:
parent
a6ed66dfd0
commit
6fa8e1fddb
@ -895,6 +895,10 @@ static int ctdb_add_public_address(struct ctdb_context *ctdb,
|
||||
vnn->public_address = *addr;
|
||||
vnn->public_netmask_bits = mask;
|
||||
vnn->pnn = -1;
|
||||
if (ctdb_sys_have_ip(addr)) {
|
||||
DEBUG(DEBUG_ERR,("We are already hosting public address '%s'\n", ctdb_addr_to_str(addr)));
|
||||
vnn->pnn = ctdb->pnn;
|
||||
}
|
||||
|
||||
for (i=0; vnn->ifaces[i]; i++) {
|
||||
ret = ctdb_add_local_iface(ctdb, vnn->ifaces[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user