summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-12-08 00:14:01 +1030
committerRusty Russell <rusty@rustcorp.com.au>2009-12-08 00:14:01 +1030
commitb8e347ec9c61eec544908ac8cfbf0590e645b1cd (patch)
treefad984dbe16d4a73608935925d0025a4e7f204d8 /ctdb/include
parenta4c2a98ba9a58f214c60cf6f9b0a9eb1674d037f (diff)
eventscript: use direct script state pointer for current monitor
We put a "scripts" member in ctdb_event_script_state, rather than using a special struct for monitor events. This will fit better as we further unify the different events, and holds the reports from the child process running each monitor script. Rather than making the monitor state a child of current_monitor_status_ctx, we just point current_monitor directly at it. This means we need to reset that pointer in the destructor for ctdb_event_script_state. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 9a2b4f6b17e54685f878d75bad27aa5090b4571f)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 665b683a7f..1dd57b1a61 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -454,7 +454,7 @@ struct ctdb_context {
TALLOC_CTX *event_script_ctx;
- struct ctdb_monitor_script_status_ctx *current_monitor_status_ctx;
+ struct ctdb_event_script_state *current_monitor;
struct ctdb_monitoring_wire *last_status;
TALLOC_CTX *banning_ctx;