Merge pull request #3786 from greatroar/prune

restic prune: Merge three loops over the index
This commit is contained in:
MichaelEischer
2022-06-18 16:54:50 +02:00
committed by GitHub
4 changed files with 42 additions and 59 deletions

View File

@@ -131,7 +131,7 @@ func (c *Checker) LoadIndex(ctx context.Context) (hints []error, errs []error) {
}
// compute pack size using index entries
c.packs = pack.Size(ctx, c.masterIndex, false)
c.packs = pack.Size(ctx, c.masterIndex)
debug.Log("checking for duplicate packs")
for packID := range c.packs {