From f2765d98a87b3a60f4afbea566873e8513dfcc68 Mon Sep 17 00:00:00 2001 From: Bala FA Date: Thu, 9 Jun 2016 10:42:36 +0530 Subject: [PATCH] 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. --- xl-v1.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xl-v1.go b/xl-v1.go index e53196ea6..8e67b06d7 100644 --- a/xl-v1.go +++ b/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) }