prune: allow gc of set of repacked blobs before index rebuild

This commit is contained in:
Michael Eischer 2022-10-22 18:10:17 +02:00
parent 1e2794fa55
commit d966c52707
1 changed files with 3 additions and 0 deletions

View File

@ -720,6 +720,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 {