mirror of
https://github.com/pgsty/minio.git
synced 2026-07-16 00:41:25 +03:00
allow specifying lower disks for Walk() (#17829)
useful when you may want Walk() with reduced quorum requirements.
This commit is contained in:
@@ -594,14 +594,11 @@ func getListQuorum(quorum string, driveCount int) int {
|
||||
return 1
|
||||
case "reduced":
|
||||
return 2
|
||||
case "strict":
|
||||
return driveCount
|
||||
}
|
||||
// Defaults to (driveCount+1)/2 drives per set, defaults to "optimal" value
|
||||
if driveCount > 0 {
|
||||
case "optimal":
|
||||
return (driveCount + 1) / 2
|
||||
} // "3" otherwise.
|
||||
return 3
|
||||
}
|
||||
// defaults to 'strict'
|
||||
return driveCount
|
||||
}
|
||||
|
||||
// Will return io.EOF if continuing would not yield more results.
|
||||
|
||||
Reference in New Issue
Block a user