From e8cee8dc388cf25fee8f22070d4535fccb8f708b Mon Sep 17 00:00:00 2001 From: Prashant D Date: Mon, 21 Oct 2019 04:46:06 -0400 Subject: [PATCH] mon/OSDMonitor.cc: Allow pool set target_max_(objects/bytes) with unit suffix Fixes : https://tracker.ceph.com/issues/42225 Signed-off-by: Prashant D --- 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 3138506e002d..24a4cb00d77a 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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 si_items = {}; + std::set si_items = {"target_max_objects"}; // create list of properties that use IEC units - std::set iec_items = {"target_size_bytes"}; + std::set iec_items = {"target_max_bytes", "target_size_bytes"}; if (si_items.count(var)) { n = strict_si_cast(val.c_str(), &interr); -- 2.47.3