XL/list: fix panic on list when a disk is down. (#1562)

This commit is contained in:
Krishna Srinivas 2016-05-10 13:05:29 +05:30 committed by Harshavardhana
parent 5f0ca64346
commit c314a98c1a

View file

@ -86,6 +86,7 @@ func (xl XL) healFile(volume string, path string) error {
erasurePart := slashpath.Join(path, fmt.Sprintf("file.%d", index))
writers[index], err = xl.storageDisks[index].CreateFile(volume, erasurePart)
if err != nil {
needsHeal[index] = false
log.WithFields(logrus.Fields{
"volume": volume,
"path": path,