Skip to content

Commit

Permalink
fix region split: region split key should be a vaild key (#2102)
Browse files Browse the repository at this point in the history
Signed-off-by: marsishandsome <marsishandsome@gmail.com>

Co-authored-by: marsishandsome <marsishandsome@gmail.com>
  • Loading branch information
ti-srebot and marsishandsome committed Sep 7, 2021
1 parent 4aad320 commit 4f599a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tikv-client/src/main/java/com/pingcap/tikv/TiSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public void splitRegionAndScatter(
splitRegion(
splitKeys
.stream()
.map(k -> Key.toRawKey(k).next().toByteString())
.map(k -> Key.toRawKey(k).toByteString())
.collect(Collectors.toList()),
ConcreteBackOffer.newCustomBackOff(splitRegionBackoffMS));

Expand Down

0 comments on commit 4f599a5

Please sign in to comment.