mirror of
https://github.com/restic/restic.git
synced 2025-12-03 21:21:47 +00:00
Merge pull request #3786 from greatroar/prune
restic prune: Merge three loops over the index
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user