mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 22:46:16 +03: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:
+1
-1
@@ -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