Skip to content

Commit

Permalink
[parser] add write conflict error (pingcap#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackysp authored and ti-chi-bot committed Oct 9, 2021
1 parent 0b845b6 commit 29b2aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions parser/mysql/errcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ const (
ErrResolveLockTimeout = 9004
ErrRegionUnavailable = 9005
ErrGCTooEarly = 9006
ErrWriteConflict = 9007

ErrTxnTooLarge = 9500
)
1 change: 1 addition & 0 deletions parser/mysql/errname.go
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ var MySQLErrName = map[uint16]string{
ErrResolveLockTimeout: "Resolve lock timeout",
ErrRegionUnavailable: "Region is unavailable",
ErrGCTooEarly: "GC life time is shorter than transaction duration, transaction starts at %v, GC safe point is %v",
ErrWriteConflict: "Write conflict, txnStartTS=%d, conflictTS=%d, key=%s",

ErrTxnTooLarge: "Transaction is too large",
}

0 comments on commit 29b2aa5

Please sign in to comment.