mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
tree-walk: unify FS and XL tree-walk with functional approach. (#2027)
This commit is contained in:
committed by
Harshavardhana
parent
a8a3e95835
commit
7a8b8cd0a1
@@ -29,7 +29,8 @@ func (xl xlObjects) listObjects(bucket, prefix, marker, delimiter string, maxKey
|
||||
walkResultCh, endWalkCh := xl.listPool.Release(listParams{bucket, recursive, marker, prefix})
|
||||
if walkResultCh == nil {
|
||||
endWalkCh = make(chan struct{})
|
||||
walkResultCh = xl.startTreeWalk(bucket, prefix, marker, recursive, xl.isObject, endWalkCh)
|
||||
listDir := listDirFactory(xl.isObject, xl.getLoadBalancedQuorumDisks()...)
|
||||
walkResultCh = startTreeWalk(bucket, prefix, marker, recursive, listDir, endWalkCh)
|
||||
}
|
||||
|
||||
var objInfos []ObjectInfo
|
||||
|
||||
Reference in New Issue
Block a user