From 01913050fc0132f8a4399ce0c646381fa511c962 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Wed, 20 Jul 2016 17:44:46 +1000 Subject: [PATCH] ctdb-client: Remove function ctdb_ctrl_thaw() from new client API This function is not used anywhere. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/client/client.h | 5 ----- ctdb/client/client_control_sync.c | 29 ----------------------------- 2 files changed, 34 deletions(-) diff --git a/ctdb/client/client.h b/ctdb/client/client.h index b7fa7fb86ce..6f4eccbf233 100644 --- a/ctdb/client/client.h +++ b/ctdb/client/client.h @@ -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, diff --git a/ctdb/client/client_control_sync.c b/ctdb/client/client_control_sync.c index 9971c9aa968..5963aa9f22c 100644 --- a/ctdb/client/client_control_sync.c +++ b/ctdb/client/client_control_sync.c @@ -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,