mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
mon/OSDMonitor.cc: better error message about min_size
Signed-off-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
parent
16fb8fec74
commit
ce25ac0a91
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user