check for upto 50%+ data disks to be offline (#17294)

This commit is contained in:
Harshavardhana 2023-05-26 22:56:19 -07:00 committed by GitHub
parent 398bca92ff
commit 394690dcfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.