added back anchor and selfheal broken chunks
This commit is contained in:
parent
fd035148bb
commit
6122768619
8 changed files with 65 additions and 44 deletions
|
|
@ -98,8 +98,12 @@ func (f *File) Read(p []byte) (n int, err error) {
|
|||
if err == io.EOF {
|
||||
return
|
||||
}
|
||||
if err == crypto.ErrDecrypt {
|
||||
log.V(2).Info("rereading to cache file", "err", err)
|
||||
return f.readToCache(p)
|
||||
}
|
||||
if err != nil {
|
||||
if !IsIOErr(err) && err != crypto.ErrDecrypt {
|
||||
if !IsIOErr(err) {
|
||||
log.Error(err, "error reading cache file")
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue