From ee1047bd523fcad9e1ab449b5c162405c02975ad Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Tue, 23 Apr 2024 19:33:28 +0800 Subject: [PATCH] fix: can't get total disksize for `decom status` (#19585) --- cmd/config-current.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/config-current.go b/cmd/config-current.go index 0847a90a3..45cc041ab 100644 --- a/cmd/config-current.go +++ b/cmd/config-current.go @@ -671,9 +671,7 @@ func applyDynamicConfigForSubSys(ctx context.Context, objAPI ObjectLayer, s conf configLogIf(ctx, fmt.Errorf("Unable to initialize storage class config: %w", err)) break } - // if we validated all setDriveCounts and it was successful - // proceed to store the correct storage class globally. - if i == len(setDriveCounts)-1 { + if i == 0 { globalStorageClass.Update(sc) } }