mirror of
https://github.com/minio/minio.git
synced 2025-01-24 05:03:16 -05:00
XL/list: fix panic on list when a disk is down. (#1562)
This commit is contained in:
parent
5f0ca64346
commit
c314a98c1a
@ -86,6 +86,7 @@ func (xl XL) healFile(volume string, path string) error {
|
|||||||
erasurePart := slashpath.Join(path, fmt.Sprintf("file.%d", index))
|
erasurePart := slashpath.Join(path, fmt.Sprintf("file.%d", index))
|
||||||
writers[index], err = xl.storageDisks[index].CreateFile(volume, erasurePart)
|
writers[index], err = xl.storageDisks[index].CreateFile(volume, erasurePart)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
needsHeal[index] = false
|
||||||
log.WithFields(logrus.Fields{
|
log.WithFields(logrus.Fields{
|
||||||
"volume": volume,
|
"volume": volume,
|
||||||
"path": path,
|
"path": path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user