mirror of
https://github.com/minio/minio
synced 2024-09-06 00:37:25 +00:00
check for upto 50%+ data disks to be offline (#17294)
This commit is contained in:
parent
398bca92ff
commit
394690dcfb
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue