Skip to content

Commit

Permalink
support follower read
Browse files Browse the repository at this point in the history
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
  • Loading branch information
5kbpers committed Jul 8, 2019
1 parent 7809473 commit e55978c
Show file tree
Hide file tree
Showing 6 changed files with 570 additions and 420 deletions.
514 changes: 278 additions & 236 deletions pkg/kvrpcpb/kvrpcpb.pb.go

Large diffs are not rendered by default.

410 changes: 226 additions & 184 deletions pkg/raft_cmdpb/raft_cmdpb.pb.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions proto/kvrpcpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ message Context {
bool sync_log = 9;
bool handle_time = 10; // true means return handle time detail
bool scan_detail = 11; // true means return scan cf's detail
bool follower_read = 12;
}

message HandleTime {
Expand Down
1 change: 1 addition & 0 deletions proto/raft_cmdpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ message RaftRequestHeader {
uint64 term = 6;

bool sync_log = 7;
bool follower_read = 8;
}

message RaftResponseHeader {
Expand Down
32 changes: 32 additions & 0 deletions src/protobuf/kvrpcpb.rs

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

32 changes: 32 additions & 0 deletions src/protobuf/raft_cmdpb.rs

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

0 comments on commit e55978c

Please sign in to comment.