Skip to content
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

add innodb_buffer_pool_size system variable #2761

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sql/variables/system_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,14 @@ var systemVars = map[string]sql.SystemVariable{
Type: types.NewSystemIntType("innodb_autoinc_lock_mode", 0, 2, false),
Default: int64(2),
},
"innodb_buffer_pool_size": &sql.MysqlSystemVariable{
Name: "innodb_buffer_pool_size",
Scope: sql.GetMysqlScope(sql.SystemVariableScope_Global),
Dynamic: true,
SetVarHintApplies: false,
Type: types.NewSystemIntType("innodb_buffer_pool_size", 5242880, math.MaxInt64, false),
Default: int64(134217728),
},
// Row locking is currently not supported. This variable is provided for 3p tools, and we always return the
// Lowest value allowed by MySQL, which is 1. If you attempt to set this value to anything other than 1, errors ensue.
"innodb_lock_wait_timeout": &sql.MysqlSystemVariable{
Expand Down