forked from TrueCloudLab/restic
prune: allow gc of set of repacked blobs before index rebuild
This commit is contained in:
parent
1e2794fa55
commit
d966c52707
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue