summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2008-01-15 08:42:12 +1100
committerRonnie Sahlberg <sahlberg@ronnie>2008-01-15 08:42:12 +1100
commitba31feaec0295a6e5fb4d3e6717a805aa2d9859e (patch)
treed987e4466eeec17e98d9d4d20a553b05081182e7 /ctdb/include
parent59327234ac3cf52f0cfa0d005ac7a17038ac66ca (diff)
split node health monitoring and checking for connected/disconnected
nodes into two separate files. move the monitoring of keepalives for detecting connected/disconnected remote nodes into ctdb_keepalive.c (This used to be ctdb commit 23a57b20c314d5f11a433cf251eb9d9de743849a)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 62764a1fbc..8780275769 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -324,6 +324,7 @@ struct ctdb_context {
struct event_context *ev;
uint32_t recovery_mode;
TALLOC_CTX *tickle_update_context;
+ TALLOC_CTX *keepalive_ctx;
struct ctdb_tunable tunable;
enum ctdb_freeze_mode freeze_mode;
struct ctdb_freeze_handle *freeze_handle;
@@ -1059,6 +1060,8 @@ void ctdb_stop_monitoring(struct ctdb_context *ctdb);
void ctdb_start_monitoring(struct ctdb_context *ctdb);
void ctdb_start_tcp_tickle_update(struct ctdb_context *ctdb);
void ctdb_send_keepalive(struct ctdb_context *ctdb, uint32_t destnode);
+void ctdb_start_keepalive(struct ctdb_context *ctdb);
+void ctdb_stop_keepalive(struct ctdb_context *ctdb);
void ctdb_daemon_cancel_controls(struct ctdb_context *ctdb, struct ctdb_node *node);
void ctdb_call_resend_all(struct ctdb_context *ctdb);