xl: quickHeal heal bucket only when needed. (#3854)

This improves the startup time significantly
for clusters which have lot of buckets.

Also fixes a bug where `.minio.sys` is created
on disks which do not have `format.json`
This commit is contained in:
Harshavardhana
2017-03-06 02:00:15 -08:00
committed by GitHub
parent 6f931d29c4
commit e49efcb9d9
2 changed files with 18 additions and 14 deletions

View File

@@ -151,7 +151,7 @@ func newXLObjects(storageDisks []StorageAPI) (ObjectLayer, error) {
}
// Initialize meta volume, if volume already exists ignores it.
if err = initMetaVolume(storageDisks); err != nil {
if err = initMetaVolume(xl.storageDisks); err != nil {
return nil, fmt.Errorf("Unable to initialize '.minio.sys' meta volume, %s", err)
}