summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_takeover.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/server/ctdb_takeover.c')
-rw-r--r--ctdb/server/ctdb_takeover.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c
index 844e3c32866..3ac569a953a 100644
--- a/ctdb/server/ctdb_takeover.c
+++ b/ctdb/server/ctdb_takeover.c
@@ -298,7 +298,7 @@ static void ctdb_vnn_unassign_iface(struct ctdb_context *ctdb,
}
vnn->iface = NULL;
if (vnn->pnn == ctdb->pnn) {
- vnn->pnn = -1;
+ vnn->pnn = CTDB_UNKNOWN_PNN;
}
}
@@ -772,7 +772,7 @@ int32_t ctdb_control_takeover_ip(struct ctdb_context *ctdb,
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",
@@ -782,7 +782,7 @@ int32_t ctdb_control_takeover_ip(struct ctdb_context *ctdb,
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