1
0
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:
Martin Schwenke 2018-03-29 15:32:53 +11:00 committed by Martin Schwenke
parent 17ad7d9114
commit 7052f87903
2 changed files with 0 additions and 11 deletions

View File

@ -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);

View File

@ -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;