fs.json file should be closed in CompleteMultipartUpload (#5482)

This commit is contained in:
Krishna Srinivas 2018-02-01 01:57:12 -08:00 committed by Nitish Tiwari
parent 3316dbc037
commit b606ba3f81

View File

@ -588,7 +588,7 @@ func (fs *fsObjects) CompleteMultipartUpload(bucket string, object string, uploa
if err != nil {
return oi, toObjectErr(errors.Trace(err), bucket, object)
}
defer fs.rwPool.Close(fsMetaPath)
defer metaFile.Close()
fsMeta := fsMetaV1{}
// Read saved fs metadata for ongoing multipart.