]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor.cc: better error message about min_size 29618/head
authorNeha Ojha <nojha@redhat.com>
Tue, 23 Jul 2019 00:50:31 +0000 (17:50 -0700)
committerPrashant D <pdhange@redhat.com>
Mon, 12 Aug 2019 23:36:16 +0000 (19:36 -0400)
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit ce25ac0a9196f90acef82915f122c5a06277993a)

src/mon/OSDMonitor.cc

index 7cff9ee9fc0cd7283b8f6b8a6152a5589785d669..6d7d08f4eeaba3e714a5b2cdb58682c35bafc7e7 100644 (file)
@@ -6753,7 +6753,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 {
@@ -6769,7 +6769,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;
        }
     }