mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
fs: Fix asynchronous multipart bug.
Construct part path properly.
This commit is contained in:
parent
1ce339abeb
commit
c4a7b950a0
@ -323,7 +323,7 @@ func appendParts(disk StorageAPI, bucket, object, uploadID, opsID string) {
|
||||
|
||||
fsAppendMeta, err := readFSMetadata(disk, minioMetaBucket, fsAppendMetaPath)
|
||||
if err != nil {
|
||||
if err != errFileNotFound {
|
||||
if errorCause(err) != errFileNotFound {
|
||||
return
|
||||
}
|
||||
fsAppendMeta = fsMeta
|
||||
@ -358,6 +358,7 @@ func appendParts(disk StorageAPI, bucket, object, uploadID, opsID string) {
|
||||
}
|
||||
}
|
||||
// Path to the part that needs to be appended.
|
||||
partPath = path.Join(mpartMetaPrefix, bucket, object, uploadID, part.Name)
|
||||
offset := int64(0)
|
||||
totalLeft := part.Size
|
||||
buf := make([]byte, readSizeV1)
|
||||
|
Loading…
Reference in New Issue
Block a user