mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Use readQuorum instead of writeQuorum to check bucket exists (#5715)
Fixes #5708 Fixes #5700
This commit is contained in:
committed by
Dee Koder
parent
19451e374a
commit
de44be86d0
@@ -1105,7 +1105,7 @@ func (s *xlSets) HealBucket(ctx context.Context, bucket string, dryRun bool) (re
|
||||
|
||||
// Check if we had quorum to write, if not return an appropriate error.
|
||||
_, afterDriveOnline := res.GetOnlineCounts()
|
||||
if afterDriveOnline < s.setCount*s.drivesPerSet/2+1 {
|
||||
if afterDriveOnline < ((s.setCount*s.drivesPerSet)/2)+1 {
|
||||
return nil, toObjectErr(errXLWriteQuorum, bucket)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user