From: Amitay Isaacs Date: Thu, 21 Jul 2016 02:53:56 +0000 (+1000) Subject: ctdb-client: Drop unused functions ctdb_ctrl_freeze_send/recv X-Git-Tag: tdb-1.3.10~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c346204f35e6df54c059002f055fc75bbc2a1bf5;p=thirdparty%2Fsamba.git ctdb-client: Drop unused functions ctdb_ctrl_freeze_send/recv Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index 80f6b2affbe..3782b2e6b7d 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -2427,35 +2427,6 @@ int ctdb_ctrl_getpid(struct ctdb_context *ctdb, struct timeval timeout, uint32_t return 0; } - -/* - async freeze send control - */ -struct ctdb_client_control_state * -ctdb_ctrl_freeze_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode, uint32_t priority) -{ - return ctdb_control_send(ctdb, destnode, priority, - CTDB_CONTROL_FREEZE, 0, tdb_null, - mem_ctx, &timeout, NULL); -} - -/* - async freeze recv control -*/ -int ctdb_ctrl_freeze_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state) -{ - int ret; - int32_t res; - - ret = ctdb_control_recv(ctdb, state, mem_ctx, NULL, &res, NULL); - if ( (ret != 0) || (res != 0) ){ - DEBUG(DEBUG_ERR,(__location__ " ctdb_ctrl_freeze_recv failed\n")); - return -1; - } - - return 0; -} - /* freeze databases of a certain priority */ diff --git a/ctdb/include/ctdb_client.h b/ctdb/include/ctdb_client.h index 1181d317ee1..6865be9d547 100644 --- a/ctdb/include/ctdb_client.h +++ b/ctdb/include/ctdb_client.h @@ -312,14 +312,6 @@ int ctdb_dump_db(struct ctdb_db_context *ctdb_db, int ctdb_ctrl_getpid(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t *pid); -struct ctdb_client_control_state *ctdb_ctrl_freeze_send( - struct ctdb_context *ctdb, - TALLOC_CTX *mem_ctx, - 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_freeze_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t priority); int ctdb_ctrl_freeze(struct ctdb_context *ctdb, struct timeval timeout,