mirror of
https://github.com/minio/minio.git
synced 2025-11-23 19:17:43 -05:00
XL/ListDir: break out of loop if list on one disk is a success. (#1534)
This commit is contained in:
committed by
Harshavardhana
parent
a205aca6d2
commit
88e1c04259
@@ -404,6 +404,8 @@ func (xl XL) ListDir(volume, dirPath string) (entries []string, err error) {
|
|||||||
entries[i] = strings.TrimSuffix(entry, slashSeparator)
|
entries[i] = strings.TrimSuffix(entry, slashSeparator)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// We have list from one of the disks hence break the loop.
|
||||||
|
break
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user