To be turned into strict check in post-hammer
release, so that we can always unambiguously
discriminate a string into one of name, rank, gid.
Signed-off-by: John Spray <john.spray@redhat.com>
usage();
}
+ 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. "
+ "MDS names may not start with a numeric digit." << dendl;
+ }
+
Messenger *messenger = Messenger::create(g_ceph_context,
entity_name_t::MDS(-1), "mds",
getpid());