mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
recoverd: Fix spurious warnings when running with --nopublicipcheck
Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 7f8096f56d8274151705ac822b582d972078f8fe)
This commit is contained in:
parent
ad4d5263e7
commit
202791cf72
@ -2775,13 +2775,13 @@ static int verify_local_ip_allocation(struct ctdb_context *ctdb, struct ctdb_rec
|
||||
ctdb_addr_to_str(&ips->ips[j].addr)));
|
||||
need_takeover_run = true;
|
||||
} else if (ips->ips[j].pnn == pnn) {
|
||||
if (!ctdb_sys_have_ip(&ips->ips[j].addr)) {
|
||||
if (ctdb->do_checkpublicip && !ctdb_sys_have_ip(&ips->ips[j].addr)) {
|
||||
DEBUG(DEBUG_CRIT,("Public address '%s' is missing and we should serve this ip\n",
|
||||
ctdb_addr_to_str(&ips->ips[j].addr)));
|
||||
need_takeover_run = true;
|
||||
}
|
||||
} else {
|
||||
if (ctdb_sys_have_ip(&ips->ips[j].addr)) {
|
||||
if (ctdb->do_checkpublicip && ctdb_sys_have_ip(&ips->ips[j].addr)) {
|
||||
DEBUG(DEBUG_CRIT,("We are still serving a public address '%s' that we should not be serving.\n",
|
||||
ctdb_addr_to_str(&ips->ips[j].addr)));
|
||||
need_takeover_run = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user