mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user