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.
master
Anis Elleuch 4 years ago committed by GitHub
parent 73a6b4ea11
commit 46ee8659b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      cmd/utils.go

@ -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…
Cancel
Save