-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update perror code and regenerate perror.go #127
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with minor suggestion
@@ -393,11 +396,11 @@ var MysqlErrNameToNum = map[string]int{ | |||
"OBSOLETE_ER_FLUSH_MASTER_BINLOG_CLOSED": 1186, | |||
"ErrIndexRebuild": 1187, | |||
"OBSOLETE_ER_INDEX_REBUILD": 1187, | |||
"ER_MASTER": 1188, | |||
"ER_SOURCE": 1188, | |||
"ErrMaster": 1188, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we create an issue in TiDB repo to clean up all these (unused?) error codes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean in pingcap/tidb? I don't think they are used there. I only found one in tests/integrationtest/t/privilege/privileges.test
: --error ER_TABLEACCESS_DENIED_ERROR
, which should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the ErrMaster
comes from pingcap/tidb, and I would assume most of the similar errors mentioning Master
or Slave
are not in use in TiDB, so they could be removed from pingcap/tidb I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could update those. But maybe we should then also try to replace master/slave in other places as well like dm-master
.
Co-authored-by: Mattias Jonsson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Not sure what's needed to get "license/cla" to report ✔️ |
https://cla.pingcap.net/pingcap/mysql-tester?pullRequest=127 says: Error There is no CLA to sign for pingcap/mysql-tester (could not find linked item for owner pingcap and repo mysql-tester) |
perror.go
.For CI:
perror.go
in CI.go.mod
instead of a hardcoded one