always send the release/take ip controls to make sure all nodes are updated
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 6 Oct 2009 01:25:44 +0000 (12:25 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 6 Oct 2009 01:25:44 +0000 (12:25 +1100)
tools/ctdb.c

index 6ae42953ff9cda4d186036ed9a6f72dd4878601b..0e8a1dc250ae5c3fdf3c2f7f641bcbed09142887 100644 (file)
@@ -897,12 +897,6 @@ static int move_ip(struct ctdb_context *ctdb, ctdb_sock_addr *addr, uint32_t pnn
                talloc_free(tmp_ctx);
                return -1;
        }
-       if (ips->ips[i].pnn == pnn) {
-               DEBUG(DEBUG_ERR, ("Host %u is already hosting '%s'\n",
-                       pnn, ctdb_addr_to_str(&ips->ips[i].addr)));
-               talloc_free(tmp_ctx);
-               return -1;
-       }
 
        ip.pnn  = pnn;
        ip.addr = *addr;