fix two typos (#406)

* fix two typos

Co-authored-by: Connor <zbk602423539@gmail.com>
This commit is contained in:
ZYFZYF 2022-07-06 19:28:33 +08:00 committed by GitHub
parent be014c2aee
commit e7de6af1d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -101,8 +101,8 @@ So your task is to implement the process of handling split admin command, just l
> - The corresponding Peer of this newly-created Region should be created by
`createPeer()` and registered to the router.regions. And the regions info should be inserted into `regionRanges` in ctx.StoreMeta.
> - For the case region split with network isolation, the snapshot to be applied may have overlap with the existing regions range. The check logic is in `checkSnapshot()` in `kv/raftstore/peer_msg_handler.go`. Please keep it in mind when implementing and take care of that case.
> - Use `engine_util.ExceedEndKey()` to compare with regions end key. Because when the end key equals “”, any key will equal or greater than “”. > - There are more errors need to be considered: `ErrRegionNotFound`,
`ErrKeyNotInRegion`, `ErrEpochNotMatch`.
> - Use `engine_util.ExceedEndKey()` to compare with regions end key. Because when the end key equals “”, any key will equal or greater than “”.
> - There are more errors need to be considered: `ErrRegionNotFound`, `ErrKeyNotInRegion`, `ErrEpochNotMatch`.
## Part C

View File

@ -37,7 +37,7 @@ func (r *regionItem) Less(other btree.Item) bool {
type storeMeta struct {
sync.RWMutex
/// region end key -> region ID
/// region start key -> region
regionRanges *btree.BTree
/// region_id -> region
regions map[uint64]*metapb.Region