-
Notifications
You must be signed in to change notification settings - Fork 220
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
pdpb: Add err type and input param to BatchScanRegions #1252
Conversation
Signed-off-by: okJiang <819421878@qq.com>
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.
Automatically generated
proto/pdpb.proto
Outdated
@@ -377,6 +378,9 @@ message BatchScanRegionsRequest { | |||
|
|||
repeated KeyRange ranges = 3; // the given ranges must be in order. | |||
int32 limit = 4; // limit the total number of regions to scan. | |||
// If output_must_contain_all_key_range is true, the output must contain all key ranges in the request. | |||
// If the output does not contain all key ranges, the request is considered failed and returns an error(REGIONS_NOT_CONTAIN_ALL_KEY_RANGE). | |||
bool output_must_contain_all_key_range = 5; |
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 we make it shorter?
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.
Do you have any better suggestions?😂
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.
contain_all_key_range?
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.
What do you think which is better? @lance6716 @you06
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.
With the comment explaination, contain_all_key_range
is clear enough to me.
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.
Co-authored-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: okJiang <819421878@qq.com>
…r-type Signed-off-by: okJiang <819421878@qq.com>
If you have no question, could you please give me an approve? @you06 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rleungx, you06 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
We'd better merge such changes together with the related TiKV PRs to prevent breaking TiKV's build when using the master kvproto. |
got it |
ref tikv/pd#8358