mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
Make WalkDir return errors (#19677)
If used, 'opts.Marker` will cause many missed entries since results are returned unsorted, and pools are serialized. Switch to fully concurrent listing and merging across pools to return sorted entries.
This commit is contained in:
@@ -1136,3 +1136,9 @@ func sleepContext(ctx context.Context, d time.Duration) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// helper type to return either item or error.
|
||||
type itemOrErr[V any] struct {
|
||||
Item V
|
||||
Err error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user