-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Adding system variable innodb_autoinc_lock_mode
#2410
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, some enginetests that initialize an engine from a config string and check for errors might not be a bad idea. Seems like a generally useful test pattern
|
||
for _, test := range tests { | ||
t.Run(fmt.Sprintf("set %v = %v", test.varName, test.varVal), func(t *testing.T) { | ||
InitSystemVariables() |
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.
maybe defer the call to make sure it resets if something errors?
We currently only support
innodb_autoinc_lock_mode = 2
, not0
or1
.MySQL Docs:
https://dev.mysql.com/doc/refman/8.0/en/innodb-auto-increment-handling.html
related: dolthub/dolt#7634