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

master
Krishna Srinivas 7 years ago committed by Nitish Tiwari
parent 3316dbc037
commit b606ba3f81
  1. 2
      cmd/fs-v1-multipart.go

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

Loading…
Cancel
Save