summaryrefslogtreecommitdiff
path: root/ctdb/include
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-08-23 13:00:10 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-08-23 13:00:10 +1000
commit8fd3df2553dbe2454e3aaf4a954a6800c596ba34 (patch)
tree161da4c030b6f46f52502d90d2dc4e10a79258c5 /ctdb/include
parent20120c23311b0724d503e9d855e4f671e988e1e7 (diff)
downloadsamba-8fd3df2553dbe2454e3aaf4a954a6800c596ba34.tar.gz
hang the ctdb_req_control structure off the ctdb_client_control_state
struct so that if we timeout a control we can print debug info such as what opcode failed and to which node we dont need the *status parameter to ctdb_client_control_state create async versions of the getrecmaster control pass a memory context to getrecmaster (This used to be ctdb commit 558b680c82f830fba82c283c78c2de8a0b150b75)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h
index 04339b06663..2acde41dd52 100644
--- a/ctdb/include/ctdb.h
+++ b/ctdb/include/ctdb.h
@@ -302,7 +302,13 @@ int ctdb_ctrl_write_record(struct ctdb_context *ctdb, uint32_t destnode, TALLOC_
/*
get the recovery mode of a remote node
*/
-int ctdb_ctrl_getrecmode(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t *recmode);
+int ctdb_ctrl_getrecmode(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode, uint32_t *recmode);
+
+struct ctdb_client_control_state *ctdb_ctrl_getrecmode_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode);
+
+int ctdb_ctrl_getrecmode_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state, uint32_t *recmode);
+
+
/*
set the recovery mode of a remote node
*/