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))
writers[index], err = xl.storageDisks[index].CreateFile(volume, erasurePart)
if err != nil {
needsHeal[index] = false
log.WithFields(logrus.Fields{
"volume": volume,
"path": path,

Loading…
Cancel
Save