ctdb-daemon: Remove unused function ctdb_stop_monitoring()
authorMartin Schwenke <martin@meltin.net>
Mon, 11 Sep 2017 00:54:03 +0000 (10:54 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 14 Sep 2017 12:49:16 +0000 (14:49 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/include/ctdb_private.h
ctdb/server/ctdb_monitor.c

index 9be81ff8603740f2e0952c173cb689852715bf6e..b38e225c470ae79e12d7d14992962f864f95884f 100644 (file)
@@ -747,8 +747,6 @@ int32_t ctdb_control_get_db_statistics(struct ctdb_context *ctdb,
 int ctdb_set_notification_script(struct ctdb_context *ctdb, const char *script);
 void ctdb_run_notification_script(struct ctdb_context *ctdb, const char *event);
 
-void ctdb_stop_monitoring(struct ctdb_context *ctdb);
-
 void ctdb_wait_for_first_recovery(struct ctdb_context *ctdb);
 
 int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata);
index 2ecbbb393c02d8dcbb776180953eef24760b083c..1455d82bf76ae8d84ce67a85e4a8fc608216704b 100644 (file)
@@ -415,18 +415,6 @@ static void ctdb_check_health(struct tevent_context *ev,
        }
 }
 
-/* stop any monitoring 
-   this should only be done when shutting down the daemon
-*/
-void ctdb_stop_monitoring(struct ctdb_context *ctdb)
-{
-       talloc_free(ctdb->monitor->monitor_context);
-       ctdb->monitor->monitor_context = NULL;
-
-       ctdb->monitor->next_interval = 5;
-       DEBUG(DEBUG_NOTICE,("Monitoring has been stopped\n"));
-}
-
 /*
   start watching for nodes that might be dead
  */