1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 07:43:03 +00:00

repair index: fix deletion of legacy indexes

This commit is contained in:
Michael Eischer 2024-03-09 18:21:22 +01:00
parent 1a8bf358f1
commit f8852f0eb6

View file

@ -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
}