mirror of
https://github.com/minio/minio.git
synced 2026-11-22 15:13:48 +00:00
xl/fs: cleanup '/.minio/tmp' directory on each initialization. (#1490)
This commit is contained in:
1 parent
ad40036cba
commit
46680788f9
4 files changed
+31
-11
No files matched your search
@@ -42,6 +42,11 @@ func newXLObjects(exportPaths ...string) (ObjectLayer, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Cleanup all temporary entries.
|
||||
cleanupAllTmpEntries(storage)
|
||||
|
||||
// Return successfully initialized object layer.
|
||||
return xlObjects{storage}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user