Skip to content

Commit

Permalink
errorpb: rename StaleEpoch to EpochNotMatch (#344)
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Shen <overvenus@gmail.com>
  • Loading branch information
overvenus committed Feb 26, 2019
1 parent 8e3f33a commit edfc1f4
Show file tree
Hide file tree
Showing 9 changed files with 269 additions and 264 deletions.
149 changes: 75 additions & 74 deletions pkg/errorpb/errorpb.pb.go

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

8 changes: 5 additions & 3 deletions proto/errorpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ message KeyNotInRegion {
bytes end_key = 4;
}

message StaleEpoch {
repeated metapb.Region new_regions = 1;
message EpochNotMatch {
repeated metapb.Region current_regions = 1;
}

message ServerIsBusy {
Expand All @@ -47,11 +47,13 @@ message RaftEntryTooLarge {
}

message Error {
reserved "stale_epoch";

string message = 1;
NotLeader not_leader = 2;
RegionNotFound region_not_found = 3;
KeyNotInRegion key_not_in_region = 4;
StaleEpoch stale_epoch = 5;
EpochNotMatch epoch_not_match = 5;
ServerIsBusy server_is_busy = 6;
StaleCommand stale_command = 7;
StoreNotMatch store_not_match = 8;
Expand Down
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.

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.

Loading

0 comments on commit edfc1f4

Please sign in to comment.