From: Neha Ojha Date: Tue, 23 Jul 2019 00:50:31 +0000 (-0700) Subject: mon/OSDMonitor.cc: better error message about min_size X-Git-Tag: v14.2.3~51^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b0f40204c6d22d722d5d527cd73639d9380c7694;p=ceph.git mon/OSDMonitor.cc: better error message about min_size Signed-off-by: Neha Ojha (cherry picked from commit ce25ac0a9196f90acef82915f122c5a06277993a) --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index cf79a72d7b0e..67f182dc8d7c 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -7170,7 +7170,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 { @@ -7186,7 +7186,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; } }