Skip to content

Commit

Permalink
region infos
Browse files Browse the repository at this point in the history
Signed-off-by: bufferflies <1045931706@qq.com>
  • Loading branch information
bufferflies committed Sep 4, 2023
1 parent 2108517 commit 64d6e95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/cluster/cluster_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ func TestReportSplit(t *testing.T) {
RegionEpoch: &metapb.RegionEpoch{ConfVer: 1, Version: 1}}
region := core.NewRegionInfo(right, right.Peers[0])
cluster.putRegion(region)
store := newTestStores(1, "2.0.0")
cluster.core.PutStore(store[0])

// split failed, split region keys must be continuous.
left := &metapb.Region{Id: 2, StartKey: []byte("a"), EndKey: []byte("b"), Peers: mockRegionPeer(cluster, []uint64{1, 2, 3}),
Expand Down

0 comments on commit 64d6e95

Please sign in to comment.