mirror of
https://github.com/pgsty/minio.git
synced 2026-08-01 16:40:43 +03:00
handle proper offline disk borrowed from #9928
This commit is contained in:
@@ -133,9 +133,6 @@ func getDisksInfo(disks []StorageAPI, endpoints []string) (disksInfo []DiskInfo,
|
|||||||
errs = g.Wait()
|
errs = g.Wait()
|
||||||
// Wait for the routines.
|
// Wait for the routines.
|
||||||
for i, diskInfoErr := range errs {
|
for i, diskInfoErr := range errs {
|
||||||
if disks[i] == OfflineDisk {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
ep := endpoints[i]
|
ep := endpoints[i]
|
||||||
if diskInfoErr != nil {
|
if diskInfoErr != nil {
|
||||||
offlineDisks[ep]++
|
offlineDisks[ep]++
|
||||||
|
|||||||
Reference in New Issue
Block a user