diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2009-12-08 01:50:55 +1030 |
|---|---|---|
| committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-12-08 01:50:55 +1030 |
| commit | a46c3b4f2ada1b59fc52a8d8684720af690e0cc8 (patch) | |
| tree | c5600ac344a0e7129c23b731270320fc7c1e1cfb /ctdb/include | |
| parent | 5d99a1a47c1d3d99fe917ee87f0fcc1a73442ccb (diff) | |
ctdb: scriptstatus can now query non-monitor events
We also no longer return an error before scripts have been run; a special
zero-length data means we have never run the scripts.
"ctdb scriptstatus all" returns all event script results.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 9b90d671581e390e2892d3a68f3ca98d58bef4df)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb.h | 3 | ||||
| -rw-r--r-- | ctdb/include/ctdb_private.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index a17abca4fe..0270925025 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -687,7 +687,8 @@ extern const char *ctdb_eventscript_call_names[]; int ctdb_ctrl_getscriptstatus(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, - TALLOC_CTX *mem_ctx, struct ctdb_scripts_wire **script_status); + TALLOC_CTX *mem_ctx, enum ctdb_eventscript_call type, + struct ctdb_scripts_wire **script_status); struct debug_levels { diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index f6ea265442..142bbd5c71 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -1489,7 +1489,9 @@ int32_t ctdb_control_set_recmaster(struct ctdb_context *ctdb, uint32_t opcode, T extern int script_log_level; -int32_t ctdb_control_get_event_script_status(struct ctdb_context *ctdb, TDB_DATA *outdata); +int32_t ctdb_control_get_event_script_status(struct ctdb_context *ctdb, + uint32_t call_type, + TDB_DATA *outdata); int ctdb_log_event_script_output(struct ctdb_context *ctdb, char *str, uint16_t len); int ctdb_ctrl_report_recd_lock_latency(struct ctdb_context *ctdb, struct timeval timeout, double latency); |
