mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Renaming a part from tmp namespace needs to be handled different from… (#1944)
* Renaming a part from tmp namespace needs to be handled different from renaming of an object * Made argument passing in xl.rename and xl.undoRename explicit
This commit is contained in:
committed by
Harshavardhana
parent
6143c87c3a
commit
393c504de0
@@ -372,7 +372,7 @@ func (xl xlObjects) putObjectPart(bucket string, object string, uploadID string,
|
||||
|
||||
// Rename temporary part file to its final location.
|
||||
partPath := path.Join(uploadIDPath, partSuffix)
|
||||
err = xl.renameObject(minioMetaBucket, tmpPartPath, minioMetaBucket, partPath)
|
||||
err = xl.renamePart(minioMetaBucket, tmpPartPath, minioMetaBucket, partPath)
|
||||
if err != nil {
|
||||
return "", toObjectErr(err, minioMetaBucket, partPath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user