fs: Fix asynchronous multipart bug.

Construct part path properly.
master
Harshavardhana 8 years ago
parent 1ce339abeb
commit c4a7b950a0
  1. 3
      cmd/fs-v1-multipart.go

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

Loading…
Cancel
Save