From: Sage Weil Date: Wed, 19 Dec 2018 03:41:09 +0000 (-0600) Subject: mon/OSDMonitor: be tidy with target_size_ratio and pre-nautilus code X-Git-Tag: v14.1.0~582^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e998991a09d7458fa6341687a70a830528117294;p=ceph.git mon/OSDMonitor: be tidy with target_size_ratio and pre-nautilus code Signed-off-by: Sage Weil --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 166f2dcd70f..9f7f176aabe 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -6840,7 +6840,9 @@ int OSDMonitor::prepare_new_pool(string& name, // larger than int32_t max. pi->opts.set(pool_opts_t::TARGET_SIZE_BYTES, static_cast(target_size_bytes)); } - if (target_size_ratio > 0.0) { + if (target_size_ratio > 0.0 && + osdmap.require_osd_release >= CEPH_RELEASE_NAUTILUS) { + // only store for nautilus+, just to be consistent and tidy. pi->opts.set(pool_opts_t::TARGET_SIZE_RATIO, target_size_ratio); }