]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor.cc: Allow pool set target_max_(objects/bytes) with unit suffix 31010/head
authorPrashant D <pdhange@redhat.com>
Mon, 21 Oct 2019 08:46:06 +0000 (04:46 -0400)
committerPrashant D <pdhange@redhat.com>
Mon, 21 Oct 2019 08:54:58 +0000 (04:54 -0400)
Fixes : https://tracker.ceph.com/issues/42225

Signed-off-by: Prashant D <pdhange@redhat.com>
src/mon/OSDMonitor.cc

index 3138506e002d7fa1f89e8709a20b116deb4a059b..24a4cb00d77a972aa82e9766ab67d549ed11a86c 100644 (file)
@@ -7861,9 +7861,9 @@ int OSDMonitor::prepare_command_pool_set(const cmdmap_t& cmdmap,
   cmd_getval(cct, cmdmap, "val", val);
 
   // create list of properties that use SI units
-  std::set<std::string> si_items = {};
+  std::set<std::string> si_items = {"target_max_objects"};
   // create list of properties that use IEC units
-  std::set<std::string> iec_items = {"target_size_bytes"};
+  std::set<std::string> iec_items = {"target_max_bytes", "target_size_bytes"};
 
   if (si_items.count(var)) {
     n = strict_si_cast<int64_t>(val.c_str(), &interr);