ctdb-client: Remove support for SET_RECLOCK
authorMartin Schwenke <martin@meltin.net>
Tue, 5 Apr 2016 06:05:47 +0000 (16:05 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 7 Jun 2016 22:51:28 +0000 (00:51 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/client/client.h
ctdb/client/client_control_sync.c
ctdb/client/ctdb_client.c
ctdb/include/ctdb_client.h

index e8288dc3f07ed19e8d03f53ff1f3adc86cf02e45..2aca4b5ca47b59234546c2f1f963adaf76ab1baf 100644 (file)
@@ -508,11 +508,6 @@ int ctdb_ctrl_get_reclock_file(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
                               int destnode, struct timeval timeout,
                               const char **reclock_file);
 
-int ctdb_ctrl_set_reclock_file(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-                              struct ctdb_client_context *client,
-                              int destnode, struct timeval timeout,
-                              const char *reclock_file);
-
 int ctdb_ctrl_stop_node(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
                        struct ctdb_client_context *client,
                        int destnode, struct timeval timeout);
index e14b02c6b2c4f673b60ff34ebc70156416dfbdd1..9971c9aa96888b8387bbaa7494218d284f665912 100644 (file)
@@ -1789,35 +1789,6 @@ int ctdb_ctrl_get_reclock_file(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
        return 0;
 }
 
-int ctdb_ctrl_set_reclock_file(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-                              struct ctdb_client_context *client,
-                              int destnode, struct timeval timeout,
-                              const char *reclock_file)
-{
-       struct ctdb_req_control request;
-       struct ctdb_reply_control *reply;
-       int ret;
-
-       ctdb_req_control_set_reclock_file(&request, reclock_file);
-       ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout,
-                                 &request, &reply);
-       if (ret != 0) {
-               DEBUG(DEBUG_ERR,
-                     ("Control SET_RECLOCK_FILE failed to node %u, ret=%d\n",
-                      destnode, ret));
-               return ret;
-       }
-
-       ret = ctdb_reply_control_set_reclock_file(reply);
-       if (ret != 0) {
-               DEBUG(DEBUG_ERR,
-                     ("Control SET_RECLOCK_FILE failed, ret=%d\n", ret));
-               return ret;
-       }
-
-       return 0;
-}
-
 int ctdb_ctrl_stop_node(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
                        struct ctdb_client_context *client,
                        int destnode, struct timeval timeout)
index 19f126ce87142772f35b82a3c1796b3de8f78451..4ed8f0aa29808c23cd22a5136f03d882e5c4f1cc 100644 (file)
@@ -4312,34 +4312,6 @@ int ctdb_ctrl_getreclock(struct ctdb_context *ctdb, struct timeval timeout,
        return 0;
 }
 
-/*
-  set the reclock filename for a node
- */
-int ctdb_ctrl_setreclock(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, const char *reclock)
-{
-       int ret;
-       TDB_DATA data;
-       int32_t res;
-
-       if (reclock == NULL) {
-               data.dsize = 0;
-               data.dptr  = NULL;
-       } else {
-               data.dsize = strlen(reclock) + 1;
-               data.dptr  = discard_const(reclock);
-       }
-
-       ret = ctdb_control(ctdb, destnode, 0, 
-                          CTDB_CONTROL_SET_RECLOCK_FILE, 0, data, 
-                          NULL, NULL, &res, &timeout, NULL);
-       if (ret != 0 || res != 0) {
-               DEBUG(DEBUG_ERR,(__location__ " ctdb_control for setreclock failed\n"));
-               return -1;
-       }
-
-       return 0;
-}
-
 /*
   stop a node
  */
index a39d09693bc8dc31d466ae2f5be114ba72b2fd97..606461ce6d350a2e6ef07a2cd2c8c0f3c14a6c38 100644 (file)
@@ -555,9 +555,6 @@ int ctdb_ctrl_report_recd_lock_latency(struct ctdb_context *ctdb,
 int ctdb_ctrl_getreclock(struct ctdb_context *ctdb,
                         struct timeval timeout, uint32_t destnode,
                         TALLOC_CTX *mem_ctx, const char **reclock);
-int ctdb_ctrl_setreclock(struct ctdb_context *ctdb,
-                        struct timeval timeout, uint32_t destnode,
-                        const char *reclock);
 
 int ctdb_ctrl_stop_node(struct ctdb_context *ctdb, struct timeval timeout,
                        uint32_t destnode);