summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_monitor.c
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-12-16 15:57:42 +1100
committerMartin Schwenke <martin@meltin.net>2014-01-16 11:41:12 +1100
commit7aa20ccb5c747707fca349e9e0847cd0fca8c839 (patch)
treec946934fc6102f440539d4221bba8b8f820b0b6c /ctdb/server/ctdb_monitor.c
parentbafa467021b7b2f17c61904b9f70f695a4395921 (diff)
downloadsamba-7aa20ccb5c747707fca349e9e0847cd0fca8c839.tar.gz
ctdb-daemon: No need to call event scripts with CTDB_CALLED_BY_USER
This was added to support external monitoring using CTDB event scripts. However, it was never used. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/server/ctdb_monitor.c')
-rw-r--r--ctdb/server/ctdb_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c
index acd68c834da..2b52fd0758c 100644
--- a/ctdb/server/ctdb_monitor.c
+++ b/ctdb/server/ctdb_monitor.c
@@ -337,7 +337,7 @@ static void ctdb_check_health(struct event_context *ev, struct timed_event *te,
DEBUG(DEBUG_NOTICE,("Recoveries finished. Running the \"startup\" event.\n"));
ret = ctdb_event_script_callback(ctdb,
ctdb->monitor->monitor_context, ctdb_startup_callback,
- ctdb, false,
+ ctdb,
CTDB_EVENT_STARTUP, "%s", "");
} else {
int i;
@@ -362,7 +362,7 @@ static void ctdb_check_health(struct event_context *ev, struct timed_event *te,
} else {
ret = ctdb_event_script_callback(ctdb,
ctdb->monitor->monitor_context, ctdb_health_callback,
- ctdb, false,
+ ctdb,
CTDB_EVENT_MONITOR, "%s", "");
}
}