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

Fixes #1493
This commit is contained in:
Harshavardhana authored and Anand Babu (AB) Periasamy committed 2016-05-05 15:00:03 -07:00
1 parent 658a595d7a
commit ca097de96c
3 files changed
+24 -13

No files matched your search

+3 -2
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{