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:
Klaus Post 2023-10-29 08:33:30 -07:00 committed by GitHub
parent 3aa3d9cf14
commit 508710f4d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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