|
|
@ -621,12 +621,12 @@ func (fs *FSObjects) CompleteMultipartUpload(ctx context.Context, bucket string, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if appendFallback { |
|
|
|
if appendFallback { |
|
|
|
|
|
|
|
if file != nil { |
|
|
|
fsRemoveFile(ctx, file.filePath) |
|
|
|
fsRemoveFile(ctx, file.filePath) |
|
|
|
|
|
|
|
} |
|
|
|
for _, part := range parts { |
|
|
|
for _, part := range parts { |
|
|
|
partPath := getPartFile(entries, part.PartNumber, part.ETag) |
|
|
|
partPath := getPartFile(entries, part.PartNumber, part.ETag) |
|
|
|
partPath = pathJoin(uploadIDDir, partPath) |
|
|
|
if err = mioutil.AppendFile(appendFilePath, pathJoin(uploadIDDir, partPath)); err != nil { |
|
|
|
err = mioutil.AppendFile(appendFilePath, partPath) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
|
|
|
|
logger.LogIf(ctx, err) |
|
|
|
logger.LogIf(ctx, err) |
|
|
|
return oi, toObjectErr(err) |
|
|
|
return oi, toObjectErr(err) |
|
|
|
} |
|
|
|
} |
|
|
|