mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -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
@@ -313,6 +313,9 @@ func serverMain(c *cli.Context) {
|
||||
// Check 'server' cli arguments.
|
||||
storageDisks := validateDisks(disks, ignoredDisks)
|
||||
|
||||
// Cleanup objects that weren't successfully written into the namespace.
|
||||
fatalIf(houseKeeping(storageDisks), "Unable to purge temporary files.")
|
||||
|
||||
// If https.
|
||||
tls := isSSL()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user