From 02abda02144585bbda6207036bcca26d3dc64cb4 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Wed, 26 Aug 2020 15:47:04 +0800 Subject: [PATCH] osd/OSDMap: avoid re-initialize osd state and weight done in set_max_osd In set_max_osd function, container's osd_weight and osd_vector have been assigned with the right state/weight value. Signed-off-by: Changcheng Liu --- src/osd/OSDMap.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index e61780ccda2d..cd920f888447 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -4188,11 +4188,6 @@ int OSDMap::build_simple_optioned(CephContext *cct, epoch_t e, uuid_d &fsid, } } - for (int i=0; i profile_map; r = get_erasure_code_profile_default(cct, profile_map, &ss); if (r < 0) { -- 2.47.3