Skip to content

Commit

Permalink
prune: allow gc of set of repacked blobs before index rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelEischer committed Oct 22, 2022
1 parent 5965d3e commit d87a940
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/restic/cmd_prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,9 @@ func doPrune(ctx context.Context, opts PruneOptions, gopts GlobalOptions, repo r
"https://github.com/restic/restic/issues/new/choose\n", plan.keepBlobs)
return errors.Fatal("internal error: blobs were not repacked")
}

// allow GC of the blob set
plan.keepBlobs = nil
}

if len(plan.ignorePacks) == 0 {
Expand Down

0 comments on commit d87a940

Please sign in to comment.