fix: when ListMultipartUploads append result from cache should filter with bucket (#21376)

This commit is contained in:
jiuker 2025-06-12 15:09:12 +08:00 committed by GitHub
parent 21409f112d
commit e1fcaebc77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {