Skip to content

Commit

Permalink
mon: Add ceph osd get-require-min-compat-client command
Browse files Browse the repository at this point in the history
As an antecedent to the already existing `get-require-min-compat-client`

Signed-off-by: hansbogert <hansbogert@gmail.com>
  • Loading branch information
hansbogert committed Nov 19, 2017
1 parent f870729 commit 1fe4d1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mon/MonCommands.h
Expand Up @@ -704,6 +704,7 @@ COMMAND("osd set-nearfull-ratio " \
"name=ratio,type=CephFloat,range=0.0|1.0", \
"set usage ratio at which OSDs are marked near-full",
"osd", "rw", "cli,rest")
COMMAND("osd get-require-min-compat-client", "get the minimum client version we will maintain compatibility with", "osd", "r", "cli,rest")
COMMAND("osd set-require-min-compat-client " \
"name=version,type=CephString " \
"name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \
Expand Down
3 changes: 3 additions & 0 deletions src/mon/OSDMonitor.cc
Expand Up @@ -8321,6 +8321,9 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
wait_for_finished_proposal(op, new Monitor::C_Command(mon, op, 0, rs,
get_last_committed() + 1));
return true;
} else if (prefix == "osd get-require-min-compat-client") {
ss << "require_min_compat_client is set to " << ceph_release_name(osdmap.require_min_compat_client);
goto reply;
} else if (prefix == "osd set-require-min-compat-client") {
string v;
cmd_getval(cct, cmdmap, "version", v);
Expand Down

0 comments on commit 1fe4d1e

Please sign in to comment.