mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-daemon: Drop unused function ctdb_set_notification_script()
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
17ad7d9114
commit
7052f87903
ctdb
@ -749,7 +749,6 @@ int32_t ctdb_control_get_db_statistics(struct ctdb_context *ctdb,
|
||||
|
||||
/* from ctdb_monitor.c */
|
||||
|
||||
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);
|
||||
|
@ -46,16 +46,6 @@ static void ctdb_check_health(struct tevent_context *ev,
|
||||
struct tevent_timer *te,
|
||||
struct timeval t, void *private_data);
|
||||
|
||||
/*
|
||||
setup the notification script
|
||||
*/
|
||||
int ctdb_set_notification_script(struct ctdb_context *ctdb, const char *script)
|
||||
{
|
||||
ctdb->notification_script = talloc_strdup(ctdb, script);
|
||||
CTDB_NO_MEMORY(ctdb, ctdb->notification_script);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ctdb_run_notification_script_child(struct ctdb_context *ctdb, const char *event)
|
||||
{
|
||||
struct stat st;
|
||||
|
Loading…
Reference in New Issue
Block a user