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

View File

@@ -53,8 +53,9 @@ func newXLObjects(exportPaths ...string) (ObjectLayer, error) {
return nil, err
}
// Cleanup all temporary entries.
cleanupAllTmpEntries(storage)
// Initialize object layer - like creating minioMetaBucket,
// cleaning up tmp files etc.
initObjectLayer(storage)
// Return successfully initialized object layer.
return xlObjects{