Skip to content

Commit

Permalink
introduce a KeyError type: GenerationOutOfOrder
Browse files Browse the repository at this point in the history
Signed-off-by: ekexium <[email protected]>
  • Loading branch information
ekexium committed Feb 20, 2024
1 parent a554af8 commit f5cb522
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 236 deletions.
6 changes: 6 additions & 0 deletions proto/kvrpcpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ message KeyError {
CommitTsTooLarge commit_ts_too_large = 9; // Calculated commit TS exceeds the limit given by the user.
AssertionFailed assertion_failed = 10; // Assertion of a `Mutation` is evaluated as a failure.
PrimaryMismatch primary_mismatch = 11; // CheckTxnStatus is sent to a lock that's not the primary.
GenerationOutOfOrder generation_out_of_order = 12; // There was an attempt to overwrite a lock with smaller generation.
}

message WriteConflict {
Expand Down Expand Up @@ -1044,6 +1045,11 @@ message PrimaryMismatch {
LockInfo lock_info = 1;
}

message GenerationOutOfOrder {
uint64 generation = 1;
LockInfo lock_info = 2;
}

enum CommandPri {
Normal = 0; // Normal is the default value.
Low = 1;
Expand Down
Loading

0 comments on commit f5cb522

Please sign in to comment.