]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tools: Drop check_srvids command from ctdb tool
authorAmitay Isaacs <amitay@gmail.com>
Fri, 4 Aug 2017 04:24:33 +0000 (14:24 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 14 Aug 2017 07:01:21 +0000 (09:01 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/doc/ctdb.1.xml
ctdb/tools/ctdb.c

index 3aceb7369ac4db4dc75b1662a3cddd170dc1aaae..dbcbd328bdba45cadf9a6a7e01189d580a35fad1 100644 (file)
@@ -1834,25 +1834,6 @@ HEALTH: NO-HEALTHY-NODES - ERROR - Backup of corrupted TDB in '/usr/local/var/li
       </para>
     </refsect2>
 
-    <refsect2>
-      <title>check_srvids <parameter>SRVID</parameter> ...</title>
-      <para>
-       This command checks whether a set of srvid message ports are
-       registered on the node or not. The command takes a list of
-       values to check.
-      </para>
-      <refsect3>
-       <title>Example</title>
-       <screen>
-# ctdb check_srvids 1 2 3 14765
-Server id 0:1 does not exist
-Server id 0:2 does not exist
-Server id 0:3 does not exist
-Server id 0:14765 exists
-       </screen>
-      </refsect3>
-    </refsect2>
-
   </refsect1>
 
   <!-- UNDOCUMENTED: showban stats disablemonitor enablemonitor
index 98f63e8b2a084fc6661d3337bb55c0d6ea1ca0b0..1ed6f6128cd828bd982042f40756d07dbd33ca52 100644 (file)
@@ -3381,44 +3381,6 @@ static int control_deltickle(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
        return 0;
 }
 
-static int control_check_srvids(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
-                               int argc, const char **argv)
-{
-       uint64_t *srvid;
-       uint8_t *result;
-       int ret, i;
-
-       if (argc == 0) {
-               usage("check_srvids");
-       }
-
-       srvid = talloc_array(mem_ctx, uint64_t, argc);
-       if (srvid == NULL) {
-               fprintf(stderr, "Memory allocation error\n");
-               return 1;
-       }
-
-       for (i=0; i<argc; i++) {
-               srvid[i] = strtoull(argv[i], NULL, 0);
-       }
-
-       ret = ctdb_ctrl_check_srvids(mem_ctx, ctdb->ev, ctdb->client,
-                                    ctdb->cmd_pnn, TIMEOUT(), srvid, argc,
-                                    &result);
-       if (ret != 0) {
-               fprintf(stderr, "Failed to check srvids on node %u\n",
-                       ctdb->cmd_pnn);
-               return ret;
-       }
-
-       for (i=0; i<argc; i++) {
-               printf("SRVID 0x%" PRIx64 " %s\n", srvid[i],
-                      (result[i] ? "exists" : "does not exist"));
-       }
-
-       return 0;
-}
-
 static int control_listnodes(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
                             int argc, const char **argv)
 {
@@ -6067,8 +6029,6 @@ static const struct ctdb_cmd {
                "add a tickle", "<ip>:<port> <ip>:<port>" },
        { "deltickle", control_deltickle, false, true,
                "delete a tickle", "<ip>:<port> <ip>:<port>" },
-       { "check_srvids", control_check_srvids, false, true,
-               "check if srvid is registered", "<id> [<id> ...]" },
        { "listnodes", control_listnodes, true, true,
                "list nodes in the cluster", NULL },
        { "reloadnodes", control_reloadnodes, false, false,