}
vnn->iface = NULL;
if (vnn->pnn == ctdb->pnn) {
- vnn->pnn = -1;
+ vnn->pnn = CTDB_UNKNOWN_PNN;
}
}
return -1;
}
- if (vnn->pnn != ctdb->pnn && have_ip && vnn->pnn != -1) {
+ if (vnn->pnn != ctdb->pnn && have_ip && vnn->pnn != CTDB_UNKNOWN_PNN) {
DEBUG(DEBUG_CRIT,(__location__ " takeoverip of IP %s is known to the kernel, "
"and we have it on iface[%s], but it was assigned to node %d"
"and we are node %d, banning ourself\n",
return -1;
}
- if (vnn->pnn == -1 && have_ip) {
+ if (vnn->pnn == CTDB_UNKNOWN_PNN && have_ip) {
/* This will cause connections to be reset and
* reestablished. However, this is a very unusual
* situation and doing this will completely repair the
struct take_ip_one_state *substate;
struct ctdb_public_ip ip;
- if (tmp_ip->pnn == -1) {
+ if (tmp_ip->pnn == CTDB_UNKNOWN_PNN) {
/* IP will be unassigned */
continue;
}