mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
Re-add duplicate upload id sanity check. (#18339)
https://github.com/minio/minio/pull/18307 partially removed the duplicate upload id check. While I can't really see how ListDir can return duplicate entries, let's re-add it, since it is a cheap sanity check.
This commit is contained in:
parent
3aa3d9cf14
commit
508710f4d1
@ -323,7 +323,7 @@ func (er erasureObjects) ListMultipartUploads(ctx context.Context, bucket, objec
|
||||
UploadID: base64.RawURLEncoding.EncodeToString([]byte(fmt.Sprintf("%s.%s", globalDeploymentID(), uploadID))),
|
||||
Initiated: startTime,
|
||||
})
|
||||
|
||||
populatedUploadIds.Add(uploadID)
|
||||
}
|
||||
|
||||
sort.Slice(uploads, func(i int, j int) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user