Skip to content

Commit

Permalink
add auto_random error definitions (pingcap#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta authored Dec 23, 2019
1 parent a8449c9 commit 79eccd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mysql/errcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,8 @@ const (
ErrSnapshotTooOld = 8055
ErrInvalidTableID = 8056
ErrInvalidType = 8057
ErrUnknownAllocatorType = 8058
ErrAutoRandReadFailed = 8059

// Error codes used by TiDB ddl package
ErrUnsupportedDDLOperation = 8200
Expand Down
2 changes: 2 additions & 0 deletions mysql/errname.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,8 @@ var MySQLErrName = map[uint16]string{
ErrDDLJobNotFound: "DDL Job:%v not found",
ErrCancelFinishedDDLJob: "This job:%v is finished, so can't be cancelled",
ErrCannotCancelDDLJob: "This job:%v is almost finished, can't be cancelled now",
ErrUnknownAllocatorType: "Invalid allocator type",
ErrAutoRandReadFailed: "Failed to read auto-random value from storage engine",

ErrSequenceUnsupportedTableOption: "Unsupported sequence table-option %s",
ErrUnsupportedType: "Unsupported type %T",
Expand Down

0 comments on commit 79eccd4

Please sign in to comment.