@@ -66,6 +66,7 @@ import (
6666 "github.com/tikv/client-go/v2/oracle"
6767 tikvclient "github.com/tikv/client-go/v2/tikv"
6868 pd "github.com/tikv/pd/client"
69+ "github.com/tikv/pd/client/opt"
6970 "go.uber.org/atomic"
7071 "go.uber.org/zap"
7172 "golang.org/x/sync/errgroup"
@@ -305,10 +306,10 @@ func (g *targetInfoGetter) CheckRequirements(ctx context.Context, checkCtx *back
305306 if err := checkTiDBVersion (ctx , versionStr , localMinTiDBVersion , localMaxTiDBVersion ); err != nil {
306307 return err
307308 }
308- if err := tikv .CheckPDVersion (ctx , g .tls , g .pdCli .GetLeaderAddr (), localMinPDVersion , localMaxPDVersion ); err != nil {
309+ if err := tikv .CheckPDVersion (ctx , g .tls , g .pdCli .GetLeaderURL (), localMinPDVersion , localMaxPDVersion ); err != nil {
309310 return err
310311 }
311- if err := tikv .CheckTiKVVersion (ctx , g .tls , g .pdCli .GetLeaderAddr (), localMinTiKVVersion , localMaxTiKVVersion ); err != nil {
312+ if err := tikv .CheckTiKVVersion (ctx , g .tls , g .pdCli .GetLeaderURL (), localMinTiKVVersion , localMaxTiKVVersion ); err != nil {
312313 return err
313314 }
314315
@@ -700,7 +701,7 @@ func (local *Backend) TotalMemoryConsume() int64 {
700701}
701702
702703func checkMultiIngestSupport (ctx context.Context , pdCtl * pdutil.PdController , importClientFactory ImportClientFactory ) (bool , error ) {
703- stores , err := pdCtl .GetPDClient ().GetAllStores (ctx , pd .WithExcludeTombstone ())
704+ stores , err := pdCtl .GetPDClient ().GetAllStores (ctx , opt .WithExcludeTombstone ())
704705 if err != nil {
705706 return false , errors .Trace (err )
706707 }
@@ -2056,7 +2057,7 @@ func getSplitConfFromStore(ctx context.Context, host string, tls *common.TLS) (
20562057// GetRegionSplitSizeKeys return region split size, region split keys, error
20572058func GetRegionSplitSizeKeys (ctx context.Context , cli pd.Client , tls * common.TLS ) (
20582059 regionSplitSize int64 , regionSplitKeys int64 , err error ) {
2059- stores , err := cli .GetAllStores (ctx , pd .WithExcludeTombstone ())
2060+ stores , err := cli .GetAllStores (ctx , opt .WithExcludeTombstone ())
20602061 if err != nil {
20612062 return 0 , 0 , err
20622063 }
0 commit comments