mirror of
https://github.com/octoleo/restic.git
synced 2024-11-23 21:27:34 +00:00
repair index: fix deletion of legacy indexes
This commit is contained in:
parent
1a8bf358f1
commit
f8852f0eb6
@ -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")
|
debug.Log("index is probably old format, trying that")
|
||||||
idx, err = decodeOldIndex(buf)
|
idx, err = decodeOldIndex(buf)
|
||||||
|
idx.ids = append(idx.ids, id)
|
||||||
return idx, err == nil, err
|
return idx, err == nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user