* 'ceph scrub', 'ceph compact' and 'ceph sync force are now DEPRECATED. Users
should instead use 'ceph mon scrub', 'ceph mon compact' and
'ceph mon sync force'.
+
+* 'ceph mon_metadata' should now be used as 'ceph mon metadata'. There is no
+ need to deprecate this command (same major release since it was first
+ introduced).
"mon", "r", "cli,rest")
COMMAND("quorum_status", "report status of monitor quorum", \
"mon", "r", "cli,rest")
-COMMAND("mon_metadata name=id,type=CephString",
- "fetch metadata for mon <id>",
- "mon", "r", "cli,rest")
COMMAND_WITH_FLAG("mon_status", "report status of monitors", "mon", "r", "cli,rest",
FLAG(NOFORWARD))
"force sync of and clear monitor store", \
"mon", "rw", "cli,rest", \
FLAG(NOFORWARD))
+COMMAND("mon metadata name=id,type=CephString",
+ "fetch metadata for mon <id>",
+ "mon", "r", "cli,rest")
/*
args = "[" + args + "]";
bool read_only = (command == "mon_status" ||
- command == "mon_metadata" ||
+ command == "mon metadata" ||
command == "quorum_status");
(read_only ? audit_clog->debug() : audit_clog->info())
*/
prefix != "mon compact" &&
prefix != "mon scrub" &&
- prefix != "mon sync force") {
+ prefix != "mon sync force" &&
+ prefix != "mon metadata") {
monmon()->dispatch(m);
return;
}
rdata.append(ds);
rs = "";
r = 0;
- } else if (prefix == "mon_metadata") {
+ } else if (prefix == "mon metadata") {
string name;
cmd_getval(g_ceph_context, cmdmap, "id", name);
int mon = monmap->get_rank(name);