summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-03-29 15:32:53 +1100
committerMartin Schwenke <martins@samba.org>2018-05-01 13:31:18 +0200
commit7052f87903fc5daaad2e155f345800ee897d19b2 (patch)
tree45565bf8f35550ebc7cb5727c899e142fb6b8da3
parent17ad7d9114bfc749350daa3988fe3223569ef945 (diff)
downloadsamba-7052f87903fc5daaad2e155f345800ee897d19b2.tar.gz
ctdb-daemon: Drop unused function ctdb_set_notification_script()
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r--ctdb/include/ctdb_private.h1
-rw-r--r--ctdb/server/ctdb_monitor.c10
2 files changed, 0 insertions, 11 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 62ba512ae50..39e32540e00 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -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);
diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c
index 0a77665ec25..59d4a915fd8 100644
--- a/ctdb/server/ctdb_monitor.c
+++ b/ctdb/server/ctdb_monitor.c
@@ -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;