mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -05:00
fix: Walk() should require quorum number of disks only (#9164)
This commit is contained in:
parent
db2155551a
commit
d45a1808f2
@ -1642,11 +1642,10 @@ func (s *xlSets) Walk(ctx context.Context, bucket, prefix string, results chan<-
|
||||
return
|
||||
}
|
||||
|
||||
if quorumCount != s.drivesPerSet {
|
||||
return
|
||||
if quorumCount >= s.drivesPerSet/2 {
|
||||
results <- entry.ToObjectInfo() // Read quorum exists proceed
|
||||
}
|
||||
|
||||
results <- entry.ToObjectInfo()
|
||||
// skip entries which do not have quorum
|
||||
}
|
||||
}()
|
||||
|
||||
|
@ -1394,11 +1394,11 @@ func (z *xlZones) Walk(ctx context.Context, bucket, prefix string, results chan<
|
||||
return
|
||||
}
|
||||
|
||||
if quorumCount != zoneDrivesPerSet[zoneIndex] {
|
||||
continue
|
||||
if quorumCount >= zoneDrivesPerSet[zoneIndex]/2 {
|
||||
results <- entry.ToObjectInfo() // Read quorum exists proceed
|
||||
}
|
||||
|
||||
results <- entry.ToObjectInfo()
|
||||
// skip entries which do not have quorum
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user