mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
parent
10a010c1ad
commit
9eb56f0676
@ -90,9 +90,8 @@ func (xl XL) healFile(volume string, path string) error {
|
||||
"volume": volume,
|
||||
"path": path,
|
||||
}).Errorf("CreateFile failed with error %s", err)
|
||||
// Unexpected error
|
||||
closeAndRemoveWriters(writers...)
|
||||
return err
|
||||
safeCloseAndRemove(writers[index])
|
||||
continue
|
||||
}
|
||||
}
|
||||
var totalLeft = metadata.Stat.Size
|
||||
@ -191,8 +190,8 @@ func (xl XL) healFile(volume string, path string) error {
|
||||
"volume": volume,
|
||||
"path": path,
|
||||
}).Errorf("Write failed with %s", err)
|
||||
closeAndRemoveWriters(writers...)
|
||||
return err
|
||||
safeCloseAndRemove(writers[index])
|
||||
continue
|
||||
}
|
||||
}
|
||||
totalLeft = totalLeft - metadata.Erasure.BlockSize
|
||||
|
Loading…
Reference in New Issue
Block a user