mirror of
https://github.com/minio/minio.git
synced 2025-03-25 23:10:57 -04:00
XL: set write quorum (no. of disk / 2) + 2 (#1876)
Previously write quorum was set to (no. of disk / 2) + 3. As per new change, the write quorum is set to (no. of disk / 2) + 2. This helps to accommodate one more failure of disk.
This commit is contained in:
parent
61598ed02f
commit
f2765d98a8
6
xl-v1.go
6
xl-v1.go
@ -169,9 +169,9 @@ func newXLObjects(disks []string) (ObjectLayer, error) {
|
||||
// erasure requirements)
|
||||
xl.readQuorum = len(xl.storageDisks)/2 + 1
|
||||
|
||||
// Write quorum is assumed if we have total disks + 3
|
||||
// parity. (Need to discuss this again)
|
||||
xl.writeQuorum = len(xl.storageDisks)/2 + 3
|
||||
// Write quorum is assumed if we have total disks + 2
|
||||
// parity.
|
||||
xl.writeQuorum = len(xl.storageDisks)/2 + 2
|
||||
if xl.writeQuorum > len(xl.storageDisks) {
|
||||
xl.writeQuorum = len(xl.storageDisks)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user