mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -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 {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user