mon: crush straw_calc_version value is 0 or 1 not 0 to 2.

Signed-off-by: song baisen <song.baisen@zte.com.cn>
This commit is contained in:
songbaisen 2017-02-21 08:44:49 +00:00
parent 3e75c6bea6
commit 88461ce6bc

View File

@ -6100,7 +6100,7 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
}
if (tunable == "straw_calc_version") {
if (value < 0 || value > 2) {
if (value < 0 || value > 1) {
ss << "value must be 0 or 1; got " << value;
err = -EINVAL;
goto reply;