prune: no longer disable automatic index updates

this allows prune to resume an interrupted prune run.
This commit is contained in:
Michael Eischer committed 2024-05-24 21:33:17 +02:00
1 parent 9aa0c90fb2
commit 68fa0e0305
3 files changed
-18

No files matched your search

-3
View File
@@ -162,9 +162,6 @@ func runPrune(ctx context.Context, opts PruneOptions, gopts GlobalOptions, term
}
func runPruneWithRepo(ctx context.Context, opts PruneOptions, gopts GlobalOptions, repo *repository.Repository, ignoreSnapshots restic.IDSet, term *termstatus.Terminal) error {
// we do not need index updates while pruning!
repo.DisableAutoIndexUpdate()
if repo.Cache == nil {
Print("warning: running prune without a cache, this may be very slow!\n")
}