mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Parallelize initialization of storageDisks (#8288)
This commit is contained in:
@@ -1615,9 +1615,11 @@ func newTestObjectLayer(endpoints EndpointList) (newObject ObjectLayer, err erro
|
||||
return nil, err
|
||||
}
|
||||
|
||||
storageDisks, err := initStorageDisks(endpoints)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
storageDisks, errs := initStorageDisksWithErrors(endpoints)
|
||||
for _, err = range errs {
|
||||
if err != nil && err != errDiskNotFound {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize list pool.
|
||||
|
||||
Reference in New Issue
Block a user