mirror of
https://github.com/pgsty/minio.git
synced 2026-08-11 08:43:28 +03:00
fix: can't get total disksize for decom status (#19585)
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user