]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: Remove check for FLAG_NOPGCHANGE for crimson pools
authorAishwarya Mathuria <amathuri@redhat.com>
Mon, 3 Feb 2025 12:15:34 +0000 (12:15 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 22 May 2025 06:20:37 +0000 (06:20 +0000)
With PG Splitting introduced, we can remove the check that previously stopped changes in pg_num for crimson pools.

Note: `nopgchange` is set to true by default with Crimson pools,
      for pg_num changes to actually take place we should also set `nopgchange` to false.
      Currently, this is used for (PG splitting) testing only. Once PG merging is in place as well,
      we could revert `nopgchange` to be false by default in Crimson.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/mon/OSDMonitor.cc

index 6c4a2b5747e3d56e982be3665e6576e6ff928170..bc23cdff9091b3bfe640036679fc1d61963c10d2 100644 (file)
@@ -8777,10 +8777,6 @@ int OSDMonitor::prepare_command_pool_set(const cmdmap_t& cmdmap,
     if (val == "true" || (interr.empty() && n == 1)) {
       p.set_flag(flag);
     } else if (val == "false" || (interr.empty() && n == 0)) {
-      if (flag == pg_pool_t::FLAG_NOPGCHANGE && p.is_crimson()) {
-       ss << "cannot clear FLAG_NOPGCHANGE on a crimson pool";
-       return -EINVAL;
-      }
       p.unset_flag(flag);
     } else {
       ss << "expecting value 'true', 'false', '0', or '1'";