mirror of
https://github.com/octoleo/restic.git
synced 2024-11-21 20:35:12 +00:00
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
@ -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 New Issue
Block a user