-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: simplify regionSubTree and regionMap #3693
Conversation
Signed-off-by: HunDunDM <[email protected]>
Signed-off-by: HunDunDM <[email protected]>
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
followers map[uint64]*regionSubTree // storeID -> regionSubTree | ||
learners map[uint64]*regionSubTree // storeID -> regionSubTree | ||
pendingPeers map[uint64]*regionSubTree // storeID -> regionSubTree | ||
regions regionMap // regionID -> regionInfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can use map directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a split PR. After that, there are other changes to the function of the regionMap
, which will become more complicated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@nolouch: Please use GitHub review feature instead of For the reason we drop support to the commands, see also this page. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/merge |
@disksing: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 27fc869
|
Codecov Report
@@ Coverage Diff @@
## master #3693 +/- ##
==========================================
+ Coverage 74.89% 74.94% +0.04%
==========================================
Files 244 244
Lines 24404 24374 -30
==========================================
- Hits 18277 18266 -11
+ Misses 4506 4487 -19
Partials 1621 1621
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* core: simplify regionSubTree and regionMap Signed-off-by: HunDunDM <[email protected]> * fix stat error Signed-off-by: HunDunDM <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
* core: simplify regionSubTree and regionMap Signed-off-by: HunDunDM <[email protected]> * fix stat error Signed-off-by: HunDunDM <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
Signed-off-by: HunDunDM [email protected]
What problem does this PR solve?
The functions of
regionTree
,regionSubTree
, andregionMap
are duplicated.What is changed and how it works?
totalKeys
statisticsregionSubTree
intoregionTree
regionMap
Check List
Tests
Release note