ctdb-client: Drop old client code for monitor controls
authorMartin Schwenke <martin@meltin.net>
Mon, 4 Sep 2017 04:51:02 +0000 (14:51 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 14 Sep 2017 12:49:16 +0000 (14:49 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/client/ctdb_client.c
ctdb/include/ctdb_client.h

index 2cff09eb822f41ca5069a2ee87b5a59ffa9e5816..d399cb551f68a4d0426f341a2949c7e22172c349 100644 (file)
@@ -2438,71 +2438,6 @@ int ctdb_ctrl_getpnn(struct ctdb_context *ctdb, struct timeval timeout, uint32_t
        return res;
 }
 
-/*
-  get the monitoring mode of a remote node
- */
-int ctdb_ctrl_getmonmode(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t *monmode)
-{
-       int ret;
-       int32_t res;
-
-       ret = ctdb_control(ctdb, destnode, 0, 
-                          CTDB_CONTROL_GET_MONMODE, 0, tdb_null, 
-                          NULL, NULL, &res, &timeout, NULL);
-       if (ret != 0) {
-               DEBUG(DEBUG_ERR,(__location__ " ctdb_control for getmonmode failed\n"));
-               return -1;
-       }
-
-       *monmode = res;
-
-       return 0;
-}
-
-
-/*
- set the monitoring mode of a remote node to active
- */
-int ctdb_ctrl_enable_monmode(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode)
-{
-       int ret;
-       
-
-       ret = ctdb_control(ctdb, destnode, 0, 
-                          CTDB_CONTROL_ENABLE_MONITOR, 0, tdb_null, 
-                          NULL, NULL,NULL, &timeout, NULL);
-       if (ret != 0) {
-               DEBUG(DEBUG_ERR,(__location__ " ctdb_control for enable_monitor failed\n"));
-               return -1;
-       }
-
-       
-
-       return 0;
-}
-
-/*
-  set the monitoring mode of a remote node to disable
- */
-int ctdb_ctrl_disable_monmode(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode)
-{
-       int ret;
-       
-
-       ret = ctdb_control(ctdb, destnode, 0, 
-                          CTDB_CONTROL_DISABLE_MONITOR, 0, tdb_null, 
-                          NULL, NULL, NULL, &timeout, NULL);
-       if (ret != 0) {
-               DEBUG(DEBUG_ERR,(__location__ " ctdb_control for disable_monitor failed\n"));
-               return -1;
-       }
-
-       
-
-       return 0;
-}
-
-
 
 /*
   sent to a node to make it take over an ip address
index 13978954d074afc33af05a4c1ec2be133c3e626b..d9040fb3550818b8039e7d96fdf2a123847b2aab 100644 (file)
@@ -317,24 +317,6 @@ int ctdb_ctrl_freeze(struct ctdb_context *ctdb, struct timeval timeout,
 int ctdb_ctrl_getpnn(struct ctdb_context *ctdb, struct timeval timeout,
                     uint32_t destnode);
 
-/*
-  get the monitoring mode of a remote node
- */
-int ctdb_ctrl_getmonmode(struct ctdb_context *ctdb, struct timeval timeout,
-                        uint32_t destnode, uint32_t *monmode);
-
-/*
-  set the monitoring mode of a remote node to active
- */
-int ctdb_ctrl_enable_monmode(struct ctdb_context *ctdb,
-                            struct timeval timeout, uint32_t destnode);
-
-/*
-  set the monitoring mode of a remote node to disabled
- */
-int ctdb_ctrl_disable_monmode(struct ctdb_context *ctdb,
-                             struct timeval timeout, uint32_t destnode);
-
 int ctdb_ctrl_takeover_ip(struct ctdb_context *ctdb, struct timeval timeout,
                          uint32_t destnode, struct ctdb_public_ip *ip);
 int ctdb_ctrl_release_ip(struct ctdb_context *ctdb, struct timeval timeout,