Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Juncen <[email protected]>
  • Loading branch information
YuJuncen committed Feb 18, 2024
1 parent 1b87746 commit 87c2283
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions br/pkg/streamhelper/basic_lib_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ type testEnv struct {
checkpoint uint64
testCtx *testing.T
ranges []kv.KeyRange
taskCh chan<- streamhelper.TaskEvent

resolveLocks func([]*txnlock.Lock, *tikv.KeyLocation) (*tikv.KeyLocation, error)

Expand All @@ -596,6 +597,7 @@ func (t *testEnv) Begin(ctx context.Context, ch chan<- streamhelper.TaskEvent) e
Ranges: rngs,
}
ch <- tsk
t.taskCh = ch
return nil
}

Expand Down Expand Up @@ -625,6 +627,13 @@ func (t *testEnv) getCheckpoint() uint64 {
return t.checkpoint
}

func (t *testEnv) unregisterTask() {
t.taskCh <- streamhelper.TaskEvent{
Type: streamhelper.EventDel,
Name: "whole",
}
}

func (t *testEnv) ScanLocksInOneRegion(bo *tikv.Backoffer, key []byte, maxVersion uint64, limit uint32) ([]*txnlock.Lock, *tikv.KeyLocation, error) {
for _, r := range t.regions {
if len(r.locks) != 0 {
Expand Down

0 comments on commit 87c2283

Please sign in to comment.