ctdb-daemon: Try to release IP address even if interface is unknown
authorMartin Schwenke <martin@meltin.net>
Sun, 7 Aug 2016 21:09:38 +0000 (07:09 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Aug 2016 21:00:26 +0000 (23:00 +0200)
The "releaseip" event in 10.interface will determine the interface and
do the right thing.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12158

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

index 638d18c37d420591ba84ad7c3b4de9e115b76ec2..1e337a4c29a32a858f5e1c49081af9d7b7d093e4 100644 (file)
@@ -2126,9 +2126,6 @@ void ctdb_release_all_ips(struct ctdb_context *ctdb)
                        ctdb_vnn_unassign_iface(ctdb, vnn);
                        continue;
                }
-               if (!vnn->iface) {
-                       continue;
-               }
 
                /* Don't allow multiple releases at once.  Some code,
                 * particularly ctdb_tickle_sentenced_connections() is