diff options
| author | Andrew Tridgell <tridge@samba.org> | 2007-05-18 23:23:36 +1000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2007-05-18 23:23:36 +1000 |
| commit | 346dfc1bef22c6ee41d1ec7cdee19c1a0fbd11d6 (patch) | |
| tree | 06e1605e3d8cf2b9e15b4e090cb9de98e228a8e5 /ctdb/include | |
| parent | 9ea6e3ca8b05a2e291654d9fe01c3fa4dbec5c30 (diff) | |
- up rx_cnt on all packet types
- notice when a node becomes available again
(This used to be ctdb commit e05110dd6112e81f224937dfd7370d963ce9531a)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb_private.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 47d0fbb991..821a99efd4 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -311,6 +311,9 @@ struct ctdb_db_context { /* timeout between dead-node monitoring events */ #define CTDB_MONITORING_TIMEOUT 5 +/* number of monitoring timeouts before a node is considered dead */ +#define CTDB_MONITORING_DEAD_COUNT 3 + /* number of consecutive calls from the same node before we give them the record */ @@ -710,7 +713,6 @@ void *_ctdb_reqid_find(struct ctdb_context *ctdb, uint32_t reqid, const char *ty void ctdb_reqid_remove(struct ctdb_context *ctdb, uint32_t reqid); void ctdb_request_control(struct ctdb_context *ctdb, struct ctdb_req_header *hdr); -void ctdb_request_keepalive(struct ctdb_context *ctdb, struct ctdb_req_header *hdr); void ctdb_reply_control(struct ctdb_context *ctdb, struct ctdb_req_header *hdr); int ctdb_daemon_send_control(struct ctdb_context *ctdb, uint32_t destnode, @@ -819,6 +821,6 @@ int ctdb_start_recoverd(struct ctdb_context *ctdb); uint32_t ctdb_get_num_connected_nodes(struct ctdb_context *ctdb); int ctdb_start_monitoring(struct ctdb_context *ctdb); -void ctdb_send_keepalive(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, uint32_t destnode); +void ctdb_send_keepalive(struct ctdb_context *ctdb, uint32_t destnode); #endif |
