mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
mon/PGMap: be helpful for "pg ls *" CLIs
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
17c4a76f7e
commit
b61cbe704c
@ -3782,7 +3782,8 @@ int process_pg_map_command(
|
||||
} else {
|
||||
int filter = pg_string_state(state_str);
|
||||
if (filter < 0) {
|
||||
*ss << "'" << state_str << "' is not a valid pg state";
|
||||
*ss << "'" << state_str << "' is not a valid pg state,"
|
||||
<< " available choices: " << pg_state_string(0xFFFFFFFF);
|
||||
return -EINVAL;
|
||||
}
|
||||
state |= filter;
|
||||
|
Loading…
Reference in New Issue
Block a user