mirror of
https://github.com/minio/minio.git
synced 2025-11-23 19:17:43 -05:00
fix: startup load time by reusing storageDisks (#9210)
This commit is contained in:
@@ -182,7 +182,7 @@ func (xl xlObjects) StorageInfo(ctx context.Context, local bool) StorageInfo {
|
||||
disks = xl.getDisks()
|
||||
} else {
|
||||
for i, d := range xl.getDisks() {
|
||||
if endpoints[i].IsLocal {
|
||||
if endpoints[i].IsLocal && d.Hostname() == "" {
|
||||
// Append this local disk since local flag is true
|
||||
disks = append(disks, d)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user