mon/PGMap: be helpful for "pg ls *" CLIs

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
xie xingguo 2017-07-24 22:56:39 +08:00
parent 17c4a76f7e
commit b61cbe704c

View File

@ -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;