repair index: fix deletion of legacy indexes
This commit is contained in:
parent
1a8bf358f1
commit
f8852f0eb6
1 changed files with 1 additions and 0 deletions
|
@ -523,6 +523,7 @@ func DecodeIndex(buf []byte, id restic.ID) (idx *Index, oldFormat bool, err erro
|
|||
|
||||
debug.Log("index is probably old format, trying that")
|
||||
idx, err = decodeOldIndex(buf)
|
||||
idx.ids = append(idx.ids, id)
|
||||
return idx, err == nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue