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

master
Krishna Srinivas 9 years ago committed by Harshavardhana
parent 5f0ca64346
commit c314a98c1a
  1. 1
      xl-erasure-v1-healfile.go

@ -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…
Cancel
Save