From c4a7b950a0fe429ed38d14f582c2eddee9b43bd6 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 2 Sep 2016 03:40:12 -0700 Subject: [PATCH] fs: Fix asynchronous multipart bug. Construct part path properly. --- cmd/fs-v1-multipart.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/fs-v1-multipart.go b/cmd/fs-v1-multipart.go index e46d1d39d..4ae2282b0 100644 --- a/cmd/fs-v1-multipart.go +++ b/cmd/fs-v1-multipart.go @@ -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)