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 authored Jan 31, 2019
1 parent be0b43e commit 7e329e0
Show file tree
Hide file tree
Showing 11 changed files with 300 additions and 297 deletions.
192 changes: 96 additions & 96 deletions pkg/errorpb/errorpb.pb.go

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions proto/errorpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,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 @@ -49,11 +49,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.

367 changes: 184 additions & 183 deletions src/errorpb.rs

Large diffs are not rendered by default.

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.

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

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

10 changes: 5 additions & 5 deletions src/lib.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/metapb.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/tikvpb.rs

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

0 comments on commit 7e329e0

Please sign in to comment.