xl/fs: Add initObjectLayer function. (#1494)

Fixes #1493
This commit is contained in:
Harshavardhana
2016-05-05 15:00:03 -07:00
committed by Anand Babu (AB) Periasamy
parent 658a595d7a
commit ca097de96c
3 changed files with 24 additions and 13 deletions
+3 -2
View File
@@ -52,8 +52,9 @@ func newFSObjects(exportPath string) (ObjectLayer, error) {
}
}
// Cleanup all temp entries upon start.
cleanupAllTmpEntries(storage)
// Initialize object layer - like creating minioMetaBucket,
// cleaning up tmp files etc.
initObjectLayer(storage)
// Return successfully initialized object layer.
return fsObjects{