mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
fix write quorum calculation for bucket operations (#10364)
When the number of disks is odd, the calculation of quorum for bucket operations were not correct, fix it.
This commit is contained in:
parent
73a6b4ea11
commit
46ee8659b4
@ -105,7 +105,11 @@ func getReadQuorum(drive int) int {
|
||||
}
|
||||
|
||||
func getWriteQuorum(drive int) int {
|
||||
return getDefaultDataBlocks(drive) + 1
|
||||
quorum := getDefaultDataBlocks(drive)
|
||||
if getDefaultParityBlocks(drive) == quorum {
|
||||
quorum++
|
||||
}
|
||||
return quorum
|
||||
}
|
||||
|
||||
// URI scheme constants.
|
||||
|
Loading…
Reference in New Issue
Block a user