Dont check ip assignment across the cluster while ip-verification
[metze/ctdb/wip.git] / server / ctdb_recoverd.c
index f04d6091fecc4d82c68301cb5f798624badfb144..3ee607e5e19a4f00f9ba988d327930b37b6175b3 100644 (file)
@@ -1275,9 +1275,11 @@ static int ctdb_reload_remote_public_ips(struct ctdb_context *ctdb,
                        return -1;
                }
 
-               if (verify_remote_ip_allocation(ctdb, ctdb->nodes[j]->known_public_ips)) {
-                       DEBUG(DEBUG_ERR,("Node %d has inconsistent public ip allocation and needs update.\n", ctdb->nodes[j]->pnn));
-                       rec->need_takeover_run = true;
+               if (rec->ip_check_disable_ctx == NULL) {
+                       if (verify_remote_ip_allocation(ctdb, ctdb->nodes[j]->known_public_ips)) {
+                               DEBUG(DEBUG_ERR,("Node %d has inconsistent public ip allocation and needs update.\n", ctdb->nodes[j]->pnn));
+                               rec->need_takeover_run = true;
+                       }
                }
 
                /* grab a new shiny list of public ips from the node */