xl/fs: cleanup '/.minio/tmp' directory on each initialization. (#1490)

This commit is contained in:
Harshavardhana
2016-05-05 01:54:43 -07:00
committed by Anand Babu (AB) Periasamy
parent ad40036cba
commit 46680788f9
4 changed files with 31 additions and 11 deletions
+2 -1
View File
@@ -100,7 +100,8 @@ func (fs fsObjects) CompleteMultipartUpload(bucket string, object string, upload
}
// Cleanup all the parts.
if err = cleanupUploadedParts(fs.storage, mpartMetaPrefix, bucket, object, uploadID); err != nil {
recursive := false
if err = cleanupUploadedParts(fs.storage, mpartMetaPrefix, bucket, object, uploadID, recursive); err != nil {
return "", err
}