fix: can't get total disksize for decom status (#19585)

This commit is contained in:
jiuker 2024-04-23 19:33:28 +08:00 committed by GitHub
parent 5ea5ab162b
commit ee1047bd52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}
}