Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#4373
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
overvenus authored and ti-chi-bot committed Jan 18, 2022
1 parent 8957631 commit 72d1482
Show file tree
Hide file tree
Showing 13 changed files with 527 additions and 32 deletions.
130 changes: 112 additions & 18 deletions cdc/kv/client.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions cdc/kv/client_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@ func prepareBenchMultiStore(b *testing.B, storeNum, regionNum int) (
isPullInit := &mockPullerInit{}
grpcPool := NewGrpcPoolImpl(ctx, &security.Credential{})
defer grpcPool.Close()
<<<<<<< HEAD
cdcClient := NewCDCClient(ctx, pdClient, kvStorage, grpcPool)
=======
regionCache := tikv.NewRegionCache(pdClient)
defer regionCache.Close()
cdcClient := NewCDCClient(ctx, pdClient, kvStorage, grpcPool, regionCache, pdtime.NewClock4Test(), "")
>>>>>>> 0538d371e (kv,puller(ticdc): add changefeed ID to kv client (#4373))
eventCh := make(chan model.RegionFeedEvent, 1000000)
wg.Add(1)
go func() {
Expand Down Expand Up @@ -280,7 +286,13 @@ func prepareBench(b *testing.B, regionNum int) (
isPullInit := &mockPullerInit{}
grpcPool := NewGrpcPoolImpl(ctx, &security.Credential{})
defer grpcPool.Close()
<<<<<<< HEAD
cdcClient := NewCDCClient(ctx, pdClient, kvStorage, grpcPool)
=======
regionCache := tikv.NewRegionCache(pdClient)
defer regionCache.Close()
cdcClient := NewCDCClient(ctx, pdClient, kvStorage, grpcPool, regionCache, pdtime.NewClock4Test(), "")
>>>>>>> 0538d371e (kv,puller(ticdc): add changefeed ID to kv client (#4373))
eventCh := make(chan model.RegionFeedEvent, 1000000)
wg.Add(1)
go func() {
Expand Down
Loading

0 comments on commit 72d1482

Please sign in to comment.