From 4bb022ba4ba32a22cf573d587098dfcea5030ed6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rados=C5=82aw=20Zarzy=C5=84ski?= Date: Tue, 24 Oct 2023 12:40:15 +0200 Subject: [PATCH] mon/OSDMonitor: let crimson handle ECPools MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Radosław Zarzyński --- src/mon/OSDMonitor.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index f8e379326f25f..09ff97e6748ee 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; -- 2.39.5