mirror of
https://github.com/minio/minio.git
synced 2025-11-25 03:56:17 -05:00
Move storageclass config handling into cmd/config/storageclass (#8360)
Continuation of the changes done in PR #8351 to refactor, add tests and move global handling into a more idiomatic style for Go as packages.
This commit is contained in:
committed by
kannappanr
parent
002ac82631
commit
3b8adf7528
@@ -144,9 +144,6 @@ func getStorageInfo(disks []StorageAPI) StorageInfo {
|
||||
available = available + di.Free
|
||||
}
|
||||
|
||||
_, sscParity := getRedundancyCount(standardStorageClass, len(disks))
|
||||
_, rrscparity := getRedundancyCount(reducedRedundancyStorageClass, len(disks))
|
||||
|
||||
storageInfo := StorageInfo{
|
||||
Used: used,
|
||||
Total: total,
|
||||
@@ -157,9 +154,6 @@ func getStorageInfo(disks []StorageAPI) StorageInfo {
|
||||
storageInfo.Backend.OnlineDisks = onlineDisks
|
||||
storageInfo.Backend.OfflineDisks = offlineDisks
|
||||
|
||||
storageInfo.Backend.StandardSCParity = sscParity
|
||||
storageInfo.Backend.RRSCParity = rrscparity
|
||||
|
||||
return storageInfo
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user