mirror of
https://github.com/minio/minio.git
synced 2025-07-25 08:20:09 -04: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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if quorumCount != s.drivesPerSet {
|
if quorumCount >= s.drivesPerSet/2 {
|
||||||
return
|
results <- entry.ToObjectInfo() // Read quorum exists proceed
|
||||||
}
|
}
|
||||||
|
// skip entries which do not have quorum
|
||||||
results <- entry.ToObjectInfo()
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -1394,11 +1394,11 @@ func (z *xlZones) Walk(ctx context.Context, bucket, prefix string, results chan<
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if quorumCount != zoneDrivesPerSet[zoneIndex] {
|
if quorumCount >= zoneDrivesPerSet[zoneIndex]/2 {
|
||||||
continue
|
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