From: Jos Collin Date: Thu, 22 Feb 2018 15:02:29 +0000 (+0530) Subject: ceph-mds: exit if invalid id X-Git-Tag: v13.0.2~74^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20541%2Fhead;p=ceph.git ceph-mds: exit if invalid id Fixes: http://tracker.ceph.com/issues/23098 Signed-off-by: Jos Collin --- diff --git a/src/ceph_mds.cc b/src/ceph_mds.cc index 5399b9460fe4..ecc84aba387f 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();