mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 08:44:02 +00:00
prune: allow gc of set of repacked blobs before index rebuild
This commit is contained in:
parent
1e2794fa55
commit
d966c52707
@ -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)
|
"https://github.com/restic/restic/issues/new/choose\n", plan.keepBlobs)
|
||||||
return errors.Fatal("internal error: blobs were not repacked")
|
return errors.Fatal("internal error: blobs were not repacked")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// allow GC of the blob set
|
||||||
|
plan.keepBlobs = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(plan.ignorePacks) == 0 {
|
if len(plan.ignorePacks) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user