mirror of
https://github.com/pgsty/minio.git
synced 2026-09-15 06:54:05 +03:00
fix: optimize DiskInfo() call avoid metrics when not needed (#17763)
This commit is contained in:
@@ -1146,7 +1146,7 @@ func getDiskInfos(ctx context.Context, disks ...StorageAPI) []*DiskInfo {
|
||||
if disk == nil {
|
||||
continue
|
||||
}
|
||||
if di, err := disk.DiskInfo(ctx); err == nil {
|
||||
if di, err := disk.DiskInfo(ctx, false); err == nil {
|
||||
res[i] = &di
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user