Skip to content

Commit

Permalink
Support uploading GC safe point to PD (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
MyonKeminta authored Jul 5, 2018
1 parent 716bb0d commit 4647096
Show file tree
Hide file tree
Showing 12 changed files with 2,409 additions and 727 deletions.
986 changes: 860 additions & 126 deletions pkg/pdpb/pdpb.pb.go

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions proto/pdpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ service PD {
rpc PutClusterConfig(PutClusterConfigRequest) returns (PutClusterConfigResponse) {}

rpc ScatterRegion(ScatterRegionRequest) returns (ScatterRegionResponse) {}

rpc GetGCSafePoint(GetGCSafePointRequest) returns (GetGCSafePointResponse) {}

rpc UpdateGCSafePoint(UpdateGCSafePointRequest) returns (UpdateGCSafePointResponse) {}
}

message RequestHeader {
Expand Down Expand Up @@ -386,3 +390,26 @@ message ScatterRegionRequest {
message ScatterRegionResponse {
ResponseHeader header = 1;
}

message GetGCSafePointRequest {
RequestHeader header = 1;
}

message GetGCSafePointResponse {
ResponseHeader header = 1;

uint64 safe_point = 2;
}

message UpdateGCSafePointRequest {
RequestHeader header = 1;

uint64 safe_point = 2;
}

message UpdateGCSafePointResponse {
ResponseHeader header = 1;

uint64 new_safe_point = 2;
}

2 changes: 1 addition & 1 deletion src/coprocessor.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/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/errorpb.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.

2 changes: 1 addition & 1 deletion src/kvrpcpb.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/metapb.rs

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

Loading

0 comments on commit 4647096

Please sign in to comment.