mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Support variable server sets (#10314)
This commit is contained in:
@@ -93,7 +93,14 @@ func path2BucketObject(s string) (bucket, prefix string) {
|
||||
}
|
||||
|
||||
func getDefaultParityBlocks(drive int) int {
|
||||
return drive / 2
|
||||
switch drive {
|
||||
case 4, 5:
|
||||
return 2
|
||||
case 6, 7:
|
||||
return 3
|
||||
default:
|
||||
return 4
|
||||
}
|
||||
}
|
||||
|
||||
func getDefaultDataBlocks(drive int) int {
|
||||
|
||||
Reference in New Issue
Block a user