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>
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'";