mirror of
https://github.com/minio/minio
synced 2024-10-14 11:52:56 +00:00
fix: can't get total disksize for decom status
(#19585)
This commit is contained in:
parent
5ea5ab162b
commit
ee1047bd52
|
@ -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))
|
configLogIf(ctx, fmt.Errorf("Unable to initialize storage class config: %w", err))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
// if we validated all setDriveCounts and it was successful
|
if i == 0 {
|
||||||
// proceed to store the correct storage class globally.
|
|
||||||
if i == len(setDriveCounts)-1 {
|
|
||||||
globalStorageClass.Update(sc)
|
globalStorageClass.Update(sc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue