]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: add --mon-config option (opposite of --no-mon-config)
authorSage Weil <sage@redhat.com>
Fri, 16 Feb 2018 15:01:14 +0000 (09:01 -0600)
committerSage Weil <sage@redhat.com>
Tue, 6 Mar 2018 20:44:50 +0000 (14:44 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config.cc

index b1b5861e36d05fbbc13893df8522d8b2ad9ac636..3982cb5ec9d6a1516f74f981782b09f991ac5aa3 100644 (file)
@@ -562,6 +562,9 @@ int md_config_t::parse_argv(std::vector<const char*>& args, int level)
     else if (ceph_argparse_flag(args, i, "--no-mon-config", (char*)NULL)) {
       no_mon_config = true;
     }
+    else if (ceph_argparse_flag(args, i, "--mon-config", (char*)NULL)) {
+      no_mon_config = false;
+    }
     else if (ceph_argparse_flag(args, i, "--foreground", "-f", (char*)NULL)) {
       set_val_or_die("daemonize", "false");
     }