]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: be tidy with target_size_ratio and pre-nautilus code
authorSage Weil <sage@redhat.com>
Wed, 19 Dec 2018 03:41:09 +0000 (21:41 -0600)
committerSage Weil <sage@redhat.com>
Wed, 19 Dec 2018 03:41:26 +0000 (21:41 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 166f2dcd70ffe88b55a77365de3f2aa1bdab27c4..9f7f176aabe212148f0f12773fb681c5795b0e0c 100644 (file)
@@ -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<int64_t>(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);
   }