mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04: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()
|
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
|
// if offline drives are more than 50% of the drives
|
||||||
// we have no quorum, we shouldn't proceed just
|
// we have no quorum, we shouldn't proceed just
|
||||||
// fail at that point.
|
// fail at that point.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user