Skip to content
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

Add batch split #6

Merged
merged 15 commits into from
Dec 20, 2018
Prev Previous commit
Next Next commit
adjust format
Signed-off-by: Connor1996 <[email protected]>
  • Loading branch information
Connor1996 committed Nov 28, 2018
commit d9fa78533a96b0a058421e2e45a6e3469d759927
12 changes: 4 additions & 8 deletions text/2018-10-25-batch-split.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ service PD {
option deprecated = true;
}
rpc AskBatchSplit(AskBatchSplitRequest) returns (AskBatchSplitResponse) {}
rpc ReportBatchSplit(ReportBatchSplitRequest)
returns (ReportBatchSplitResponse) {}
rpc ReportBatchSplit(ReportBatchSplitRequest) returns (ReportBatchSplitResponse) {}
}

message AskBatchSplitRequest {
Expand Down Expand Up @@ -83,8 +82,7 @@ deprecated.
```protobuf
message SplitRequest {
// ...
// Will be ignored in batch split. Use `BatchSplitRequest::right_derive`
// instead.
// Will be ignored in batch split. Use `BatchSplitRequest::right_derive` instead.
bool right_derive = 4 [deprecated=true];
}

Expand Down Expand Up @@ -143,10 +141,8 @@ pub trait SplitChecker {
// before: fn split_key(&mut self) -> Option<Vec<u8>>
fn split_keys(&mut self) -> Vec<Vec<u8>>;

// before: fn approximate_split_key(&self, _: &Region, _: &DB)
// -> Result<Option<Vec<u8>>>
fn approximate_split_keys(&self, _: &Region, _: &DB) ->
Result<Vec<Vec<u8>>> {
// before: fn approximate_split_key(&self, _: &Region, _: &DB) -> Result<Option<Vec<u8>>>
fn approximate_split_keys(&self, _: &Region, _: &DB) -> Result<Vec<Vec<u8>>>;
}
```

Expand Down