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)
committerMichael Adam <obnox@samba.org>
Fri, 6 Jun 2014 13:00:36 +0000 (15:00 +0200)
(cherry picked from commit 441ad00af842a8b7b5291de60d8ab08a064f5327)

server/ctdb_recoverd.c

index 89abbb315478323376a485e8df4e283925ffd532..ac96ccd3d247f63bd8ed51b1f0654c767458ecf6 100644 (file)
@@ -1287,10 +1287,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;
+                               }
                        }
                }