From 394690dcfb1b80532d5785bbf5313a0e57b58a00 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 26 May 2023 22:56:19 -0700 Subject: [PATCH] check for upto 50%+ data disks to be offline (#17294) --- cmd/erasure-multipart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/erasure-multipart.go b/cmd/erasure-multipart.go index 1aec3dfc0..8cca0dc6e 100644 --- a/cmd/erasure-multipart.go +++ b/cmd/erasure-multipart.go @@ -412,7 +412,7 @@ func (er erasureObjects) newMultipartUpload(ctx context.Context, bucket string, } wg.Wait() - if int(atomicOfflineDrives.Load()) > len(onlineDisks)/2 { + if int(atomicOfflineDrives.Load()) >= (len(onlineDisks)+1)/2 { // if offline drives are more than 50% of the drives // we have no quorum, we shouldn't proceed just // fail at that point.