ctdb-tools: Drop "ctdb rebalancenode"
authorAmitay Isaacs <amitay@gmail.com>
Mon, 15 Aug 2016 05:58:58 +0000 (15:58 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Aug 2016 07:22:13 +0000 (09:22 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12151

This was already dropped in commit d67868469521341aa92c589a0bb6df90b150d555.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Aug 17 09:22:13 CEST 2016 on sn-devel-144

ctdb/tools/ctdb.c

index 728354e3ced001aae4dc003da7481d82dbcce763..a2aacfff3a522194d1af18cccaa18018d1451900 100644 (file)
@@ -5733,22 +5733,6 @@ static int control_checktcpport(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
        return 0;
 }
 
-static int control_rebalancenode(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
-                                int argc, const char **argv)
-{
-       if (argc != 0) {
-               usage("rebalancenode");
-       }
-
-       if (! rebalancenode(mem_ctx, ctdb, ctdb->cmd_pnn)) {
-               fprintf(stderr, "Failed to rebalance IPs on node %u\n",
-                       ctdb->cmd_pnn);
-               return 1;
-       }
-
-       return 0;
-}
-
 static int control_getdbseqnum(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
                               int argc, const char **argv)
 {
@@ -6291,8 +6275,6 @@ static const struct ctdb_cmd {
                "delete a database key", "<dbname|dbid> <key>" },
        { "checktcpport", control_checktcpport, true, false,
                "check if a service is bound to a specific tcp port or not", "<port>" },
-       { "rebalancenode", control_rebalancenode, false, true,
-               "mark nodes as forced IP rebalancing targets", NULL },
        { "getdbseqnum", control_getdbseqnum, false, false,
                "get database sequence number", "<dbname|dbid>" },
        { "nodestatus", control_nodestatus, false, true,