mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
verify part.N exists before reading part.N.meta (#20383)
if part.N doesn't exist we do not have to complete the multipart transaction, it simply means that we have some partial upload situation at hand.
This commit is contained in:
@@ -1106,7 +1106,7 @@ func (er erasureObjects) CompleteMultipartUpload(ctx context.Context, bucket str
|
||||
readQuorum := fi.ReadQuorum(er.defaultRQuorum())
|
||||
|
||||
// Read Part info for all parts
|
||||
partPath := pathJoin(uploadIDPath, fi.DataDir) + "/"
|
||||
partPath := pathJoin(uploadIDPath, fi.DataDir) + SlashSeparator
|
||||
partMetaPaths := make([]string, len(parts))
|
||||
partNumbers := make([]int, len(parts))
|
||||
for idx, part := range parts {
|
||||
|
||||
Reference in New Issue
Block a user