]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
on startup release all IPs, in case we have any left over from a previous run
authorAndrew Tridgell <tridge@samba.org>
Tue, 12 Jun 2007 09:44:54 +0000 (19:44 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 12 Jun 2007 09:44:54 +0000 (19:44 +1000)
(This used to be ctdb commit 5eb2f8f5f70f567c264d6929e95899b70f0e4ec0)

ctdb/server/ctdb_daemon.c

index a483a3a116e7f0995822dba3c9db77567bc16c2e..2372708f1f02f0e8db84baf970c366552df87e18 100644 (file)
@@ -122,6 +122,9 @@ static void ctdb_main_loop(struct ctdb_context *ctdb)
                                 CTDB_CTRL_FLAG_NOREPLY,
                                 tdb_null, NULL, NULL);
 
+       /* release any IPs we hold from previous runs of the daemon */
+       ctdb_release_all_ips(ctdb);
+
        ret = ctdb_event_script_callback(ctdb, timeval_zero(), ctdb, 
                                         ctdb_start_transport, NULL, "startup");
        if (ret != 0) {