mirror of
https://github.com/minio/minio.git
synced 2025-07-08 16:42:17 -04:00
fix: when ListMultipartUploads append result from cache should filter with bucket (#21376)
This commit is contained in:
parent
21409f112d
commit
e1fcaebc77
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user