mirror of
https://github.com/restic/restic.git
synced 2025-10-10 15:23:26 +00:00
copy: Load snapshots before indexes
This commit is contained in:
@@ -44,6 +44,10 @@ func checkPacks(chkr *checker.Checker) []error {
|
||||
}
|
||||
|
||||
func checkStruct(chkr *checker.Checker) []error {
|
||||
err := chkr.LoadSnapshots(context.TODO())
|
||||
if err != nil {
|
||||
return []error{err}
|
||||
}
|
||||
return collectErrors(context.TODO(), func(ctx context.Context, errChan chan<- error) {
|
||||
chkr.Structure(ctx, nil, errChan)
|
||||
})
|
||||
|
Reference in New Issue
Block a user