mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
xl/fs: cleanup '/.minio/tmp' directory on each initialization. (#1490)
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
ad40036cba
commit
46680788f9
@@ -46,6 +46,11 @@ func newFSObjects(exportPath string) (ObjectLayer, error) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// Cleanup all temp entries upon start.
|
||||
cleanupAllTmpEntries(storage)
|
||||
|
||||
// Return successfully initialized object layer.
|
||||
return fsObjects{storage}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user