Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update restore.go
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer authored May 10, 2021
1 parent 690d222 commit 653e0c6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/task/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ import (
"context"
"time"

<<<<<<< HEAD
=======
"github.com/pingcap/br/pkg/version"

"github.com/opentracing/opentracing-go"
>>>>>>> 70b0a35b (br/restore: add version check for backup schema_version (#929))
"github.com/pingcap/errors"
"github.com/pingcap/failpoint"
backuppb "github.com/pingcap/kvproto/pkg/backup"
Expand Down Expand Up @@ -145,16 +142,14 @@ func RunRestore(c context.Context, g glue.Glue, cmdName string, cfg *RestoreConf
return errors.Trace(err)
}
g.Record("Size", utils.ArchiveSize(backupMeta))
<<<<<<< HEAD
=======

backupVersion := version.NormalizeBackupVersion(backupMeta.ClusterVersion)
if cfg.CheckRequirements && backupVersion != nil {
if versionErr := version.CheckClusterVersion(ctx, mgr.GetPDClient(), version.CheckVersionForBackup(backupVersion)); versionErr != nil {
return errors.Trace(versionErr)
}
}

>>>>>>> 70b0a35b (br/restore: add version check for backup schema_version (#929))
if err = client.InitBackupMeta(backupMeta, u); err != nil {
return errors.Trace(err)
}
Expand Down

0 comments on commit 653e0c6

Please sign in to comment.