From ce25ac0a9196f90acef82915f122c5a06277993a Mon Sep 17 00:00:00 2001 From: Neha Ojha Date: Mon, 22 Jul 2019 17:50:31 -0700 Subject: [PATCH] mon/OSDMonitor.cc: better error message about min_size Signed-off-by: Neha Ojha --- src/mon/OSDMonitor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 0bc73206f8e62..aec7ab35930e3 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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; } } -- 2.39.5