]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-client: Remove functions ctdb_ctrl_thaw_priority() and ctdb_ctrl_thaw()
authorAmitay Isaacs <amitay@gmail.com>
Tue, 19 Jul 2016 07:18:31 +0000 (17:18 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Jul 2016 19:29:41 +0000 (21:29 +0200)
These functions are not used anywhere.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/client/ctdb_client.c
ctdb/include/ctdb_client.h

index 6748e692a62e306e3dc4edb85e974750f14d5ce0..d1b622574ea5e7316941e72b057898cbe51eca2b 100644 (file)
@@ -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
  */
index 606461ce6d350a2e6ef07a2cd2c8c0f3c14a6c38..1181d317ee1974267aa98540ed5e279c5bcd52b6 100644 (file)
@@ -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);