Skip to content

Commit

Permalink
Add end_key field to RawScanRequest (#318)
Browse files Browse the repository at this point in the history
Signed-off-by: MyonKeminta <[email protected]>
  • Loading branch information
MyonKeminta committed Jul 29, 2019
1 parent b63af5f commit 9f66347
Show file tree
Hide file tree
Showing 9 changed files with 1,037 additions and 930 deletions.
303 changes: 177 additions & 126 deletions pkg/kvrpcpb/kvrpcpb.pb.go

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions proto/kvrpcpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ message ScanRequest {
uint64 version = 4;
bool key_only = 5;
bool reverse = 6;
// For compatibility, when scanning forward, the range to scan is [start_key, end_key); and when scanning
// backward, the range is [end_key, start_key).
// For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
// and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
bytes end_key = 7;
}

Expand Down Expand Up @@ -339,6 +339,9 @@ message RawScanRequest {
bool key_only = 4;
string cf = 5;
bool reverse = 6;
// For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
// and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
bytes end_key = 7;
}

message RawScanResponse {
Expand Down
16 changes: 8 additions & 8 deletions src/coprocessor.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/debugpb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/import_kvpb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/import_sstpb.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9f66347

Please sign in to comment.