Dont check remote ip allocation if public ip mgmt is disabled
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 10 Nov 2010 03:46:05 +0000 (14:46 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 10 Nov 2010 03:53:47 +0000 (14:53 +1100)
server/ctdb_recoverd.c

index 0fcddc457dd3ee6543ee07cfe0a49cbc841f0c56..fc56088d4119b64473c0e5eabb12a978527b82a5 100644 (file)
@@ -1336,10 +1336,12 @@ static int ctdb_reload_remote_public_ips(struct ctdb_context *ctdb,
                        return -1;
                }
 
-               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;
+               if (ctdb->tunable.disable_ip_failover == 0) {
+                       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;
+                               }
                        }
                }