mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
use the correct endpoints for offline drives
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ func getDisksInfo(disks []StorageAPI, endpoints []string) (disksInfo []madmin.Di
|
|||||||
errs = g.Wait()
|
errs = g.Wait()
|
||||||
// Wait for the routines.
|
// Wait for the routines.
|
||||||
for i, diskInfoErr := range errs {
|
for i, diskInfoErr := range errs {
|
||||||
ep := endpoints[i]
|
ep := disksInfo[i].Endpoint
|
||||||
if diskInfoErr != nil {
|
if diskInfoErr != nil {
|
||||||
offlineDisks[ep]++
|
offlineDisks[ep]++
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user