@@ -559,7 +559,7 @@ func (rc *LogClient) InitClients(
559559 log .Fatal ("failed to get stores" , zap .Error (err ))
560560 }
561561
562- metaClient := split .NewClient (rc .pdClient , rc .pdHTTPClient , rc .tlsConf , maxSplitKeysOnce , len (stores )+ 1 )
562+ metaClient := split .NewClient (rc .pdClient , rc .pdHTTPClient , rc .tlsConf , maxSplitKeysOnce , len (stores )+ 1 , split . WithRequestSource ( kvutil . BuildRequestSource ( true , kv . InternalTxnBR , kvutil . ExplicitTypeBR )) )
563563 importCli := importclient .NewImportClient (metaClient , rc .tlsConf , rc .keepaliveConf )
564564
565565 rc .logRestoreManager , err = NewLogRestoreManager (
@@ -1499,7 +1499,7 @@ func (rc *LogClient) WrapCompactedFilesIterWithSplitHelper(
14991499 splitSize uint64 ,
15001500 splitKeys int64 ,
15011501) (iter.TryNextor [SSTs ], error ) {
1502- client := split .NewClient (rc .pdClient , rc .pdHTTPClient , rc .tlsConf , maxSplitKeysOnce , 3 )
1502+ client := split .NewClient (rc .pdClient , rc .pdHTTPClient , rc .tlsConf , maxSplitKeysOnce , 3 , split . WithRequestSource ( kvutil . BuildRequestSource ( true , kv . InternalTxnBR , kvutil . ExplicitTypeBR )) )
15031503 wrapper := restore.PipelineRestorerWrapper [SSTs ]{
15041504 PipelineRegionsSplitter : split .NewPipelineRegionsSplitter (client , splitSize , splitKeys ),
15051505 }
@@ -1518,7 +1518,7 @@ func (rc *LogClient) WrapLogFilesIterWithSplitHelper(
15181518 splitSize uint64 ,
15191519 splitKeys int64 ,
15201520) (LogIter , error ) {
1521- client := split .NewClient (rc .pdClient , rc .pdHTTPClient , rc .tlsConf , maxSplitKeysOnce , 3 )
1521+ client := split .NewClient (rc .pdClient , rc .pdHTTPClient , rc .tlsConf , maxSplitKeysOnce , 3 , split . WithRequestSource ( kvutil . BuildRequestSource ( true , kv . InternalTxnBR , kvutil . ExplicitTypeBR )) )
15221522 wrapper := restore.PipelineRestorerWrapper [* LogDataFileInfo ]{
15231523 PipelineRegionsSplitter : split .NewPipelineRegionsSplitter (client , splitSize , splitKeys ),
15241524 }
0 commit comments