diff options
Diffstat (limited to 'ctdb/client/ctdb_client.c')
-rw-r--r-- | ctdb/client/ctdb_client.c | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index 61a9722901..e98ccb9353 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -3643,86 +3643,6 @@ int switch_from_server_to_client(struct ctdb_context *ctdb) } /* - tell the main daemon we are starting a new monitor event script - */ -int ctdb_ctrl_event_script_init(struct ctdb_context *ctdb) -{ - int ret; - int32_t res; - - ret = ctdb_control(ctdb, CTDB_CURRENT_NODE, 0, CTDB_CONTROL_EVENT_SCRIPT_INIT, 0, tdb_null, - ctdb, NULL, &res, NULL, NULL); - if (ret != 0 || res != 0) { - DEBUG(DEBUG_ERR,("Failed to send event_script_init\n")); - return -1; - } - - return 0; -} - -/* - tell the main daemon we are starting a new monitor event script - */ -int ctdb_ctrl_event_script_finished(struct ctdb_context *ctdb) -{ - int ret; - int32_t res; - - ret = ctdb_control(ctdb, CTDB_CURRENT_NODE, 0, CTDB_CONTROL_EVENT_SCRIPT_FINISHED, 0, tdb_null, - ctdb, NULL, &res, NULL, NULL); - if (ret != 0 || res != 0) { - DEBUG(DEBUG_ERR,("Failed to send event_script_init\n")); - return -1; - } - - return 0; -} - -/* - tell the main daemon we are starting to run an eventscript - */ -int ctdb_ctrl_event_script_start(struct ctdb_context *ctdb, const char *name) -{ - int ret; - int32_t res; - TDB_DATA data; - - data.dptr = discard_const(name); - data.dsize = strlen(name)+1; - - ret = ctdb_control(ctdb, CTDB_CURRENT_NODE, 0, CTDB_CONTROL_EVENT_SCRIPT_START, 0, data, - ctdb, NULL, &res, NULL, NULL); - if (ret != 0 || res != 0) { - DEBUG(DEBUG_ERR,("Failed to send event_script_start\n")); - return -1; - } - - return 0; -} - -/* - tell the main daemon the status of the script we ran - */ -int ctdb_ctrl_event_script_stop(struct ctdb_context *ctdb, int32_t result) -{ - int ret; - int32_t res; - TDB_DATA data; - - data.dptr = (uint8_t *)&result; - data.dsize = sizeof(result); - - ret = ctdb_control(ctdb, CTDB_CURRENT_NODE, 0, CTDB_CONTROL_EVENT_SCRIPT_STOP, 0, data, - ctdb, NULL, &res, NULL, NULL); - if (ret != 0 || res != 0) { - DEBUG(DEBUG_ERR,("Failed to send event_script_stop\n")); - return -1; - } - - return 0; -} - -/* get the status of running the monitor eventscripts */ int ctdb_ctrl_getscriptstatus(struct ctdb_context *ctdb, |