]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-mds: exit if invalid id
authorJos Collin <jcollin@redhat.com>
Thu, 22 Feb 2018 15:02:29 +0000 (20:32 +0530)
committerJos Collin <jcollin@redhat.com>
Fri, 23 Feb 2018 05:46:40 +0000 (11:16 +0530)
Fixes: http://tracker.ceph.com/issues/23098
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/ceph_mds.cc

index 5399b9460fe493d45efdb29efff5ac5d7a8e6901..ecc84aba387fa3231465e0da0eacdcfccb47bb3a 100644 (file)
@@ -139,9 +139,9 @@ int main(int argc, const char **argv)
 
   if (g_conf->name.get_id().empty() ||
       (g_conf->name.get_id()[0] >= '0' && g_conf->name.get_id()[0] <= '9')) {
-    derr << "deprecation warning: MDS id '" << g_conf->name
-      << "' is invalid and will be forbidden in a future version.  "
+    derr << "MDS id '" << g_conf->name << "' is invalid. "
       "MDS names may not start with a numeric digit." << dendl;
+    exit(1);
   }
 
   auto nonce = ceph::util::generate_random_number<uint64_t>();