mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
DiskInfo() must return errDiskNotFound not internal errors (#18514)
This commit is contained in:
@@ -270,7 +270,7 @@ func (client *storageRESTClient) DiskInfo(ctx context.Context, metrics bool) (in
|
||||
// were attempted. This can lead to false success under certain conditions
|
||||
// - this change attempts to avoid stale information if the underlying
|
||||
// transport is already down.
|
||||
return info, grid.ErrDisconnected
|
||||
return info, errDiskNotFound
|
||||
}
|
||||
fetchDI := func(di *timedValue, metrics bool) {
|
||||
di.TTL = time.Second
|
||||
|
||||
Reference in New Issue
Block a user