mon/OSDMonitor.cc: better error message about min_size

Signed-off-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
Neha Ojha 2019-07-22 17:50:31 -07:00
parent 16fb8fec74
commit ce25ac0a91

View File

@ -7458,7 +7458,7 @@ int OSDMonitor::prepare_command_pool_set(const cmdmap_t& cmdmap,
if (p.type != pg_pool_t::TYPE_ERASURE) {
if (n < 1 || n > p.size) {
ss << "pool min_size must be between 1 and " << (int)p.size;
ss << "pool min_size must be between 1 and size, which is set to " << (int)p.size;
return -EINVAL;
}
} else {
@ -7474,7 +7474,7 @@ int OSDMonitor::prepare_command_pool_set(const cmdmap_t& cmdmap,
}
if (n < k || n > p.size) {
ss << "pool min_size must be between " << k << " and " << (int)p.size;
ss << "pool min_size must be between " << k << " and size, which is set to " << (int)p.size;
return -EINVAL;
}
}