ctdb-daemon: Don't release all IPs before "startup" event
authorMartin Schwenke <martin@meltin.net>
Mon, 5 Sep 2016 03:38:18 +0000 (13:38 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 12 Sep 2017 10:23:19 +0000 (12:23 +0200)
This doesn't belong in the monitoring/startup code and it is already
done in the 10.interface "init" event.

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

index 738acb1167ba0b10d7e8c8d7e583c0f917a6bf07..223220cac26d67c7f0ca1f2c09a20b98c0de86ad 100644 (file)
@@ -270,9 +270,6 @@ static void ctdb_run_startup(struct tevent_context *ev,
                return;
        }
 
-       /* release any IPs we hold from previous runs of the daemon */
-       ctdb_release_all_ips(ctdb);
-
        DEBUG(DEBUG_NOTICE,("Running the \"startup\" event.\n"));
        ret = ctdb_event_script_callback(ctdb,
                                         ctdb->monitor->monitor_context,