XL/mutltipart: fix partnumber to partname association. (#1739)

Fixes #1738
This commit is contained in:
Krishna Srinivas
2016-05-24 20:45:46 +05:30
committed by Harshavardhana
parent a00a5c6e7e
commit 6d84e84b3c
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -191,7 +191,7 @@ func (xl xlObjects) PutObject(bucket string, object string, size int64, data io.
nsMutex.Lock(bucket, object)
defer nsMutex.Unlock(bucket, object)
tempErasureObj := path.Join(tmpMetaPrefix, bucket, object, "object1")
tempErasureObj := path.Join(tmpMetaPrefix, bucket, object, "object00001")
tempObj := path.Join(tmpMetaPrefix, bucket, object)
fileWriter, err := xl.erasureDisk.CreateFile(minioMetaBucket, tempErasureObj)
if err != nil {
@@ -283,7 +283,7 @@ func (xl xlObjects) PutObject(bucket string, object string, size int64, data io.
xlMeta.Meta = metadata
xlMeta.Stat.Size = size
xlMeta.Stat.ModTime = modTime
xlMeta.AddObjectPart("object1", newMD5Hex, xlMeta.Stat.Size)
xlMeta.AddObjectPart("object00001", newMD5Hex, xlMeta.Stat.Size)
if err = xl.writeXLMetadata(bucket, object, xlMeta); err != nil {
return "", toObjectErr(err, bucket, object)
}