forked from TrueCloudLab/restic
repair pack: reenable auto index updates
The method is not available on the restic.Repository interface that is used for testing. Drop the call as a small amount of additional index writes is not a problem.
This commit is contained in:
parent
feeab84204
commit
7c351bc53c
1 changed files with 1 additions and 2 deletions
|
@ -10,10 +10,9 @@ import (
|
|||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
func RepairPacks(ctx context.Context, repo *Repository, ids restic.IDSet, printer progress.Printer) error {
|
||||
func RepairPacks(ctx context.Context, repo restic.Repository, ids restic.IDSet, printer progress.Printer) error {
|
||||
wg, wgCtx := errgroup.WithContext(ctx)
|
||||
repo.StartPackUploader(wgCtx, wg)
|
||||
repo.DisableAutoIndexUpdate()
|
||||
|
||||
printer.P("salvaging intact data from specified pack files")
|
||||
bar := printer.NewCounter("pack files")
|
||||
|
|
Loading…
Reference in a new issue