mirror of
https://github.com/minio/minio.git
synced 2026-06-10 09:21:43 -04:00
fix: when ListMultipartUploads append result from cache should filter with bucket (#21376)
This commit is contained in:
parent
21409f112d
commit
e1fcaebc77
1 changed files with 3 additions and 1 deletions
|
|
@ -1709,7 +1709,9 @@ func (z *erasureServerPools) ListMultipartUploads(ctx context.Context, bucket, p
|
|||
}
|
||||
|
||||
z.mpCache.Range(func(_ string, mp MultipartInfo) bool {
|
||||
poolResult.Uploads = append(poolResult.Uploads, mp)
|
||||
if mp.Bucket == bucket {
|
||||
poolResult.Uploads = append(poolResult.Uploads, mp)
|
||||
}
|
||||
return true
|
||||
})
|
||||
sort.Slice(poolResult.Uploads, func(i int, j int) bool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue