ctdb-ipalloc: Drop an unnecessary check
authorMartin Schwenke <martin@meltin.net>
Mon, 23 May 2016 04:46:18 +0000 (14:46 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 4 Jul 2016 13:42:24 +0000 (15:42 +0200)
Deleted (and other inactive) nodes will have an empty list of known
IP addresses.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_takeover.c

index e969ab393e8963d2c821e09b25f4e75e5d4614e8..41beffc3016e396169f2f665c4678b10a722ae77 100644 (file)
@@ -1247,10 +1247,6 @@ create_merged_ip_list(struct ctdb_context *ctdb, struct ipalloc_state *ipalloc_s
 
        for (i=0; i < ctdb->num_nodes; i++) {
 
-               if (ctdb->nodes[i]->flags & NODE_FLAGS_DELETED) {
-                       continue;
-               }
-
                public_ips = &ipalloc_state->known_public_ips[i];
 
                for (j=0; j < public_ips->num; j++) {