mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
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:
parent
3e75c6bea6
commit
88461ce6bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user