Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
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);
}
}
-/* 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
*/