mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-client: Remove function ctdb_ctrl_thaw() from new client API
This function is not used anywhere. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
d5bc917e1a
commit
01913050fc
@ -336,11 +336,6 @@ int ctdb_ctrl_freeze(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
|
||||
int destnode, struct timeval timeout,
|
||||
int priority);
|
||||
|
||||
int ctdb_ctrl_thaw(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
|
||||
struct ctdb_client_context *client,
|
||||
int destnode, struct timeval timeout,
|
||||
int priority);
|
||||
|
||||
int ctdb_ctrl_get_pnn(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
|
||||
struct ctdb_client_context *client,
|
||||
int destnode, struct timeval timeout,
|
||||
|
@ -760,35 +760,6 @@ int ctdb_ctrl_freeze(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ctdb_ctrl_thaw(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
|
||||
struct ctdb_client_context *client,
|
||||
int destnode, struct timeval timeout,
|
||||
int priority)
|
||||
{
|
||||
struct ctdb_req_control request;
|
||||
struct ctdb_reply_control *reply;
|
||||
int ret;
|
||||
|
||||
ctdb_req_control_thaw(&request, priority);
|
||||
ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout,
|
||||
&request, &reply);
|
||||
if (ret != 0) {
|
||||
DEBUG(DEBUG_ERR,
|
||||
("Control THAW failed to node %u, ret=%d\n",
|
||||
destnode, ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = ctdb_reply_control_thaw(reply);
|
||||
if (ret != 0) {
|
||||
DEBUG(DEBUG_ERR,
|
||||
("Control THAW failed, ret=%d\n", ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ctdb_ctrl_get_pnn(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
|
||||
struct ctdb_client_context *client,
|
||||
int destnode, struct timeval timeout,
|
||||
|
Loading…
Reference in New Issue
Block a user