diff options
| author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-10-12 09:22:17 +1100 |
|---|---|---|
| committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-10-12 09:22:17 +1100 |
| commit | d4c98516a23515632bf3fa3458c8cc342e63d7da (patch) | |
| tree | 1ab5c7f6f57d21444dd55d45a4473d221678cc3f /ctdb/include | |
| parent | ae57e545666aa4c39bd3e52a3fd08de3e7e1f91d (diff) | |
uptade the freeze/thaw commands to be able to send the requested database priority to freeze/thaw to the daemon.
this is encoded in the srvid field of the request header
(This used to be ctdb commit 0cb3d33caa42ed783e03bc825b181dde4cf63616)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb.h | 6 | ||||
| -rw-r--r-- | ctdb/include/ctdb_private.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index 839d581327..b9a7685f52 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -456,14 +456,18 @@ int ctdb_ctrl_getpid(struct ctdb_context *ctdb, struct timeval timeout, uint32_t int ctdb_ctrl_freeze(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode); +int ctdb_ctrl_freeze_priority(struct ctdb_context *ctdb, struct timeval timeout, + uint32_t destnode, uint32_t priority); struct ctdb_client_control_state * ctdb_ctrl_freeze_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, - struct timeval timeout, uint32_t destnode); + struct timeval timeout, uint32_t destnode, + uint32_t priority); int ctdb_ctrl_freeze_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state); +int ctdb_ctrl_thaw_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t priority); int ctdb_ctrl_thaw(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode); int ctdb_ctrl_getpnn(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode); diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index d5f44995de..c54a8d2185 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -1192,7 +1192,7 @@ void ctdb_request_control_reply(struct ctdb_context *ctdb, struct ctdb_req_contr TDB_DATA *outdata, int32_t status, const char *errormsg); int32_t ctdb_control_freeze(struct ctdb_context *ctdb, struct ctdb_req_control *c, bool *async_reply); -int32_t ctdb_control_thaw(struct ctdb_context *ctdb); +int32_t ctdb_control_thaw(struct ctdb_context *ctdb, struct ctdb_req_control *c); int ctdb_start_recoverd(struct ctdb_context *ctdb); void ctdb_stop_recoverd(struct ctdb_context *ctdb); |
