mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
mon/OSDMonitor: do not handle "osd set/unset" full
this flag is not honored by client or cluster anymore Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
cbb88da947
commit
4ecb5dccbd
@ -1477,7 +1477,7 @@ function test_mon_osd()
|
||||
done
|
||||
|
||||
for f in noup nodown noin noout noscrub nodeep-scrub nobackfill \
|
||||
norebalance norecover notieragent full
|
||||
norebalance norecover notieragent
|
||||
do
|
||||
ceph osd set $f
|
||||
ceph osd unset $f
|
||||
|
@ -11004,9 +11004,7 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
|
||||
|
||||
string key;
|
||||
cmd_getval(cct, cmdmap, "key", key);
|
||||
if (key == "full")
|
||||
return prepare_set_flag(op, CEPH_OSDMAP_FULL);
|
||||
else if (key == "pause")
|
||||
if (key == "pause")
|
||||
return prepare_set_flag(op, CEPH_OSDMAP_PAUSERD | CEPH_OSDMAP_PAUSEWR);
|
||||
else if (key == "noup")
|
||||
return prepare_set_flag(op, CEPH_OSDMAP_NOUP);
|
||||
@ -11056,9 +11054,7 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
|
||||
} else if (prefix == "osd unset") {
|
||||
string key;
|
||||
cmd_getval(cct, cmdmap, "key", key);
|
||||
if (key == "full")
|
||||
return prepare_unset_flag(op, CEPH_OSDMAP_FULL);
|
||||
else if (key == "pause")
|
||||
if (key == "pause")
|
||||
return prepare_unset_flag(op, CEPH_OSDMAP_PAUSERD | CEPH_OSDMAP_PAUSEWR);
|
||||
else if (key == "noup")
|
||||
return prepare_unset_flag(op, CEPH_OSDMAP_NOUP);
|
||||
|
Loading…
Reference in New Issue
Block a user