fix: when ListMultipartUploads append result from cache should filter with bucket (#21376)
VulnCheck / Analysis (push) Has been cancelled Details

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
1 changed files with 3 additions and 1 deletions

View File

@ -1709,7 +1709,9 @@ func (z *erasureServerPools) ListMultipartUploads(ctx context.Context, bucket, p
}
z.mpCache.Range(func(_ string, mp MultipartInfo) bool {
if mp.Bucket == bucket {
poolResult.Uploads = append(poolResult.Uploads, mp)
}
return true
})
sort.Slice(poolResult.Uploads, func(i int, j int) bool {