]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-mds: obsolete hot-standby option
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 Feb 2019 20:00:18 +0000 (12:00 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 28 Feb 2019 05:38:25 +0000 (21:38 -0800)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
doc/man/8/ceph-mds.rst
src/ceph_mds.cc

index bab5e629fb27b3d93c0043d9fd5e03b03d18dbb2..a07b9105f7e2f2a09d1f7608d4777f5c6ee1f2aa 100644 (file)
@@ -9,7 +9,7 @@
 Synopsis
 ========
 
-| **ceph-mds** -i <*ID*> [flags] [ --hot-standby <*rank*> ]
+| **ceph-mds** -i <*ID*> [flags]
 
 
 Description
@@ -27,11 +27,6 @@ it a logical rank, or put it in a standby pool to take over for
 another daemon that crashes. Some of the specified options can cause
 other behaviors.
 
-If you specify --hot-standby, you must specify the rank on the command
-line. Alternatively, you can specify one of the mds_standby_for_[rank|name]
-parameters in the config.  The command line specification overrides the config,
-and specifying the rank overrides specifying the name.
-
 
 Options
 =======
@@ -68,10 +63,6 @@ Options
    Connect to specified monitor (instead of looking through
    ``ceph.conf``).
 
-.. option:: --hot-standby <rank>
-
-   Start as a hot standby for MDS <rank>.
-
 .. option:: --id/-i ID
 
    Set ID portion of the MDS name.
index 010a441d7d59a263d58ae0fdb8c13bb65a465ad2..473d2de7eb5daa9a8f5dd6f88f4ba1e2cf0e537c 100644 (file)
 
 static void usage()
 {
-  cout << "usage: ceph-mds -i <ID> [flags] [--hot-standby <rank>]\n"
+  cout << "usage: ceph-mds -i <ID> [flags]\n"
        << "  -m monitorip:port\n"
        << "        connect to monitor at given address\n"
        << "  --debug_mds n\n"
        << "        debug MDS level (e.g. 10)\n"
-       << "  --hot-standby rank\n"
-       << "        start up as a hot standby for rank\n"
        << std::endl;
   generic_server_usage();
 }
 
 
-static int parse_rank(const char *opt_name, const std::string &val)
-{
-  std::string err;
-  int ret = strict_strtol(val.c_str(), 10, &err);
-  if (!err.empty()) {
-    derr << "error parsing " << opt_name << ": failed to parse rank. "
-        << "It must be an int." << "\n" << dendl;
-    exit(1);
-  }
-  return ret;
-}
-
-
-
 MDSDaemon *mds = NULL;
 
 
@@ -115,13 +99,7 @@ int main(int argc, const char **argv)
       break;
     }
     else if (ceph_argparse_witharg(args, i, &val, "--hot-standby", (char*)NULL)) {
-      int r = parse_rank("hot-standby", val);
-      dout(0) << "requesting standby_replay for mds." << r << dendl;
-      char rb[32];
-      snprintf(rb, sizeof(rb), "%d", r);
-      g_conf().set_val("mds_standby_for_rank", rb);
-      g_conf().set_val("mds_standby_replay", "true");
-      g_conf().apply_changes(nullptr);
+      dout(0) << "--hot-standby is obsolete and has no effect" << dendl;
     }
     else {
       derr << "Error: can't understand argument: " << *i << "\n" << dendl;