mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
Improve listing consistency with version merging (#13723)
This commit is contained in:
@@ -764,7 +764,7 @@ type listPathRawOptions struct {
|
||||
// agreed is called if all disks agreed.
|
||||
agreed func(entry metaCacheEntry)
|
||||
|
||||
// partial will be returned when there is disagreement between disks.
|
||||
// partial will be called when there is disagreement between disks.
|
||||
// if disk did not return any result, but also haven't errored
|
||||
// the entry will be empty and errs will
|
||||
partial func(entries metaCacheEntries, nAgreed int, errs []error)
|
||||
@@ -905,7 +905,7 @@ func listPathRaw(ctx context.Context, opts listPathRawOptions) (err error) {
|
||||
continue
|
||||
}
|
||||
// If exact match, we agree.
|
||||
if current.matches(&entry, opts.bucket) {
|
||||
if _, ok := current.matches(&entry, true); ok {
|
||||
topEntries[i] = entry
|
||||
agree++
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user