mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
fix: when ListMultipartUploads append result from cache should filter with bucket (#21376)
This commit is contained in:
@@ -1709,7 +1709,9 @@ func (z *erasureServerPools) ListMultipartUploads(ctx context.Context, bucket, p
|
|||||||
}
|
}
|
||||||
|
|
||||||
z.mpCache.Range(func(_ string, mp MultipartInfo) bool {
|
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
|
return true
|
||||||
})
|
})
|
||||||
sort.Slice(poolResult.Uploads, func(i int, j int) bool {
|
sort.Slice(poolResult.Uploads, func(i int, j int) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user