-
Notifications
You must be signed in to change notification settings - Fork 720
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
pd-ctl: return full region information for /region api #1252
Conversation
Any need to add/update test cases? |
The title should follow the rule mentioned in the development document https://github.com/pingcap/pd/blob/master/CONTRIBUTING.md#format-of-the-commit-message |
No test case should be updated. |
server/api/region_test.go
Outdated
newTestRegionInfo(3, 1, []byte("b"), []byte("c")), | ||
newTestRegionInfo(4, 2, []byte("c"), []byte("d")), | ||
} | ||
regions := make([]*regionInfo, 0) |
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.
make([]*regionInfo, 0, len(rs))
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
What problem does this PR solve?
close #1223
What is changed and how it works?
Check List
Tests
Side effects
no
Related changes