From: Amitay Isaacs Date: Tue, 19 Jul 2016 07:18:31 +0000 (+1000) Subject: ctdb-client: Remove functions ctdb_ctrl_thaw_priority() and ctdb_ctrl_thaw() X-Git-Tag: tdb-1.3.10~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5bc917e1a2469737ca6df2a54757a7c042272c4;p=thirdparty%2Fsamba.git ctdb-client: Remove functions ctdb_ctrl_thaw_priority() and ctdb_ctrl_thaw() These functions are not used anywhere. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index 6748e692a62..d1b622574ea 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -2485,31 +2485,6 @@ int ctdb_ctrl_freeze(struct ctdb_context *ctdb, struct timeval timeout, uint32_t return 0; } -/* - thaw databases of a certain priority - */ -int ctdb_ctrl_thaw_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t priority) -{ - int ret; - int32_t res; - - ret = ctdb_control(ctdb, destnode, priority, - CTDB_CONTROL_THAW, 0, tdb_null, - NULL, NULL, &res, &timeout, NULL); - if (ret != 0 || res != 0) { - DEBUG(DEBUG_ERR,(__location__ " ctdb_control thaw failed\n")); - return -1; - } - - return 0; -} - -/* thaw all databases */ -int ctdb_ctrl_thaw(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode) -{ - return ctdb_ctrl_thaw_priority(ctdb, timeout, destnode, 0); -} - /* get pnn of a node, or -1 */ diff --git a/ctdb/include/ctdb_client.h b/ctdb/include/ctdb_client.h index 606461ce6d3..1181d317ee1 100644 --- a/ctdb/include/ctdb_client.h +++ b/ctdb/include/ctdb_client.h @@ -325,11 +325,6 @@ int ctdb_ctrl_freeze_priority(struct ctdb_context *ctdb, struct timeval timeout, int ctdb_ctrl_freeze(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode); -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);