From d9821cfef91d9eb6b0c0d9074275468fdd303c66 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Thu, 22 Feb 2018 20:32:29 +0530 Subject: [PATCH] ceph-mds: exit if invalid id Fixes: http://tracker.ceph.com/issues/23098 Signed-off-by: Jos Collin --- src/ceph_mds.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph_mds.cc b/src/ceph_mds.cc index 5399b9460fe..ecc84aba387 100644 --- a/src/ceph_mds.cc +++ b/src/ceph_mds.cc @@ -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(); -- 2.39.5