]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor.cc: better error message about min_size 29184/head
authorNeha Ojha <nojha@redhat.com>
Tue, 23 Jul 2019 00:50:31 +0000 (17:50 -0700)
committerNeha Ojha <nojha@redhat.com>
Tue, 23 Jul 2019 00:50:31 +0000 (17:50 -0700)
Signed-off-by: Neha Ojha <nojha@redhat.com>
src/mon/OSDMonitor.cc

index 0bc73206f8e627636fe779751786fffb86104fad..aec7ab35930e33dfa0f9590f5283dbf524bbc2a4 100644 (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;
        }
     }