mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Move housekeeping before object layer initialization (#3001)
In a distributed setup that the server should not perform any operation on the storage layer after it is exported via RPC. e.g, cleaning up of temporary directories under .minio.sys/tmp may interfere with ongoing PUT objects being served by the distributed setup.
This commit is contained in:
committed by
Harshavardhana
parent
19c51f3f3c
commit
7d50361ca9
@@ -52,11 +52,6 @@ func newFSObjects(storage StorageAPI) (ObjectLayer, error) {
|
||||
return nil, errInvalidArgument
|
||||
}
|
||||
|
||||
// Runs house keeping code, like creating minioMetaBucket, cleaning up tmp files etc.
|
||||
if err := fsHouseKeeping(storage); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Load format and validate.
|
||||
_, err := loadFormatFS(storage)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user