summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdb_control.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-12-08 00:27:40 +1030
committerRusty Russell <rusty@rustcorp.com.au>2009-12-08 00:27:40 +1030
commitc309d22f9ac4b424020c89262f9480972c01bf2c (patch)
treebc7dd998683b699b78a111f52c08be2963124124 /ctdb/server/ctdb_control.c
parent69c30c6ba0fb53907b3b916a587adc209f46476f (diff)
downloadsamba-c309d22f9ac4b424020c89262f9480972c01bf2c.tar.gz
samba-c309d22f9ac4b424020c89262f9480972c01bf2c.tar.xz
samba-c309d22f9ac4b424020c89262f9480972c01bf2c.zip
eventscript: remove unused ctbd_ctrl_event_script*
The child no longer uses ctdb_ctrl_event_script_init or ctdb_ctrl_event_script_finished, and the others are redundant: it doesn't need to tell us it's starting a script when it only runs one. We move start and stop calls to the parent, and eliminate the RPC infrastructure altogether. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 391926a87a7af73840f10bb314c0a2f951a0854c)
Diffstat (limited to 'ctdb/server/ctdb_control.c')
-rw-r--r--ctdb/server/ctdb_control.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/ctdb/server/ctdb_control.c b/ctdb/server/ctdb_control.c
index f7af371753..92e303f7cf 100644
--- a/ctdb/server/ctdb_control.c
+++ b/ctdb/server/ctdb_control.c
@@ -432,21 +432,6 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
CHECK_CONTROL_DATA_SIZE(0);
return ctdb_control_recd_ping(ctdb);
- case CTDB_CONTROL_EVENT_SCRIPT_INIT:
- CHECK_CONTROL_DATA_SIZE(0);
- return ctdb_control_event_script_init(ctdb);
-
- case CTDB_CONTROL_EVENT_SCRIPT_START:
- return ctdb_control_event_script_start(ctdb, indata);
-
- case CTDB_CONTROL_EVENT_SCRIPT_STOP:
- CHECK_CONTROL_DATA_SIZE(sizeof(int32_t));
- return ctdb_control_event_script_stop(ctdb, indata);
-
- case CTDB_CONTROL_EVENT_SCRIPT_FINISHED:
- CHECK_CONTROL_DATA_SIZE(0);
- return ctdb_control_event_script_finished(ctdb);
-
case CTDB_CONTROL_GET_EVENT_SCRIPT_STATUS:
CHECK_CONTROL_DATA_SIZE(0);
return ctdb_control_get_event_script_status(ctdb, outdata);