]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: require nautilus to set pg_autoscale_mode 27928/head
authorSage Weil <sage@redhat.com>
Tue, 7 May 2019 16:05:30 +0000 (11:05 -0500)
committerSage Weil <sage@redhat.com>
Fri, 10 May 2019 14:31:03 +0000 (09:31 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 232a75aecd47322f86bfd4f7eb28a2ff119cefbe..0e8efd44a694b469cf2cb9b62169a16a16a849bc 100644 (file)
@@ -7485,6 +7485,10 @@ int OSDMonitor::prepare_command_pool_set(const cmdmap_t& cmdmap,
       ss << "specified invalid mode " << val;
       return -EINVAL;
     }
+    if (osdmap.require_osd_release < ceph_release_t::nautilus) {
+      ss << "must set require_osd_release to nautilus or later before setting pg_autoscale_mode";
+      return -EINVAL;
+    }
     p.pg_autoscale_mode = n;
   } else if (var == "crush_rule") {
     int id = osdmap.crush->get_rule_id(val);