ctdb-client: Drop unused functions ctdb_ctrl_freeze_send/recv
authorAmitay Isaacs <amitay@gmail.com>
Thu, 21 Jul 2016 02:53:56 +0000 (12:53 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Jul 2016 19:29:41 +0000 (21:29 +0200)
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 80f6b2affbef9156ceff124d74cfe03853fd80d4..3782b2e6b7d5b35d7981a61af7de75cf36cd85a5 100644 (file)
@@ -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
  */
index 1181d317ee1974267aa98540ed5e279c5bcd52b6..6865be9d54793ad40a07cad02fde31ae02e83d73 100644 (file)
@@ -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,