summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_monitor.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2017-09-04 14:33:17 +1000
committerAmitay Isaacs <amitay@samba.org>2017-09-14 14:49:16 +0200
commitb00e3605151b739c4cac8f81af7b081dee2c7df7 (patch)
tree35f7a4b8c52f77ef7174e76c085a45b578b5f61b /ctdb/server/ctdb_monitor.c
parent74f29a48dbbb980f7e22783e80cee03feb2c18de (diff)
downloadsamba-b00e3605151b739c4cac8f81af7b081dee2c7df7.tar.gz
ctdb-daemon: Drop implementation of monitor controls
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/server/ctdb_monitor.c')
-rw-r--r--ctdb/server/ctdb_monitor.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c
index 90808b03c6f..b749d233618 100644
--- a/ctdb/server/ctdb_monitor.c
+++ b/ctdb/server/ctdb_monitor.c
@@ -419,26 +419,6 @@ static void ctdb_check_health(struct tevent_context *ev,
}
}
-/*
- (Temporaily) Disabling monitoring will stop the monitor event scripts
- from running but node health checks will still occur
-*/
-void ctdb_disable_monitoring(struct ctdb_context *ctdb)
-{
- ctdb->monitor->monitoring_mode = CTDB_MONITORING_DISABLED;
- DEBUG(DEBUG_INFO,("Monitoring has been disabled\n"));
-}
-
-/*
- Re-enable running monitor events after they have been disabled
- */
-void ctdb_enable_monitoring(struct ctdb_context *ctdb)
-{
- ctdb->monitor->monitoring_mode = CTDB_MONITORING_ENABLED;
- ctdb->monitor->next_interval = 5;
- DEBUG(DEBUG_INFO,("Monitoring has been enabled\n"));
-}
-
/* stop any monitoring
this should only be done when shutting down the daemon
*/
@@ -529,22 +509,3 @@ int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata)
return 0;
}
-
-/*
- return the monitoring mode
- */
-int32_t ctdb_monitoring_mode(struct ctdb_context *ctdb)
-{
- if (ctdb->monitor == NULL) {
- return CTDB_MONITORING_DISABLED;
- }
- return ctdb->monitor->monitoring_mode;
-}
-
-/*
- * Check if monitoring has been stopped
- */
-bool ctdb_stopped_monitoring(struct ctdb_context *ctdb)
-{
- return (ctdb->monitor->monitor_context == NULL ? true : false);
-}