fs: Fix asynchronous multipart bug.

Construct part path properly.
This commit is contained in:
Harshavardhana 2016-09-02 03:40:12 -07:00
parent 1ce339abeb
commit c4a7b950a0

View File

@ -323,7 +323,7 @@ func appendParts(disk StorageAPI, bucket, object, uploadID, opsID string) {
fsAppendMeta, err := readFSMetadata(disk, minioMetaBucket, fsAppendMetaPath) fsAppendMeta, err := readFSMetadata(disk, minioMetaBucket, fsAppendMetaPath)
if err != nil { if err != nil {
if err != errFileNotFound { if errorCause(err) != errFileNotFound {
return return
} }
fsAppendMeta = fsMeta fsAppendMeta = fsMeta
@ -358,6 +358,7 @@ func appendParts(disk StorageAPI, bucket, object, uploadID, opsID string) {
} }
} }
// Path to the part that needs to be appended. // Path to the part that needs to be appended.
partPath = path.Join(mpartMetaPrefix, bucket, object, uploadID, part.Name)
offset := int64(0) offset := int64(0)
totalLeft := part.Size totalLeft := part.Size
buf := make([]byte, readSizeV1) buf := make([]byte, readSizeV1)