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
}