ListMultipartUploads, ListObjectParts return empty response (#4694)

Also, periodically removes incomplete multipart uploads older than 2 weeks.
This commit is contained in:
Krishnan Parthasarathi
2017-08-04 10:45:57 -07:00
committed by Dee Koder
parent 0aca2ab970
commit 75c43bfb6c
4 changed files with 146 additions and 119 deletions

View File

@@ -157,6 +157,9 @@ func newFSObjectLayer(fsPath string) (ObjectLayer, error) {
return nil, fmt.Errorf("Unable to initialize event notification. %s", err)
}
// Start background process to cleanup old files in minio.sys.tmp
go fs.cleanupStaleMultipartUploads()
// Return successfully initialized object layer.
return fs, nil
}