mirror of
https://github.com/restic/restic.git
synced 2026-06-01 14:49:44 +00:00
repository: forget id of unreadable packs on index rebuild (#21826)
This commit is contained in:
@@ -788,8 +788,7 @@ func (r *Repository) createIndexFromPacks(ctx context.Context, packsize map[rest
|
||||
m.Lock()
|
||||
invalid = append(invalid, fi.ID)
|
||||
m.Unlock()
|
||||
}
|
||||
if err := r.idx.StorePack(wgCtx, fi.ID, entries, &internalRepository{r}); err != nil {
|
||||
} else if err := r.idx.StorePack(wgCtx, fi.ID, entries, &internalRepository{r}); err != nil {
|
||||
return err
|
||||
}
|
||||
p.Add(1)
|
||||
|
||||
Reference in New Issue
Block a user