From: Radosław Zarzyński Date: Tue, 24 Oct 2023 10:40:15 +0000 (+0200) Subject: mon/OSDMonitor: let crimson handle ECPools X-Git-Tag: v19.3.0~13^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4bb022ba4ba32a22cf573d587098dfcea5030ed6;p=ceph.git mon/OSDMonitor: let crimson handle ECPools Signed-off-by: Radosław Zarzyński --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index f8e379326f25..09ff97e6748e 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -8013,10 +8013,7 @@ int OSDMonitor::prepare_new_pool(string& name, /* crimson-osd requires that the pool be replicated and that pg_num/pgp_num * be static. User must also have specified set-allow-crimson */ const auto *suffix = " (--crimson specified or osd_pool_default_crimson set)"; - if (pool_type != pg_pool_t::TYPE_REPLICATED) { - *ss << "crimson-osd only supports replicated pools" << suffix; - return -EINVAL; - } else if (pg_autoscale_mode != "off") { + if (pg_autoscale_mode != "off") { *ss << "crimson-osd does not support changing pg_num or pgp_num, " << "pg_autoscale_mode must be set to 'off'" << suffix; return -EINVAL;