Skip to content

Commit 2e03797

Browse files
jycorJames Cor
andauthored
add innodb_buffer_pool_size system variable (#2761)
Co-authored-by: James Cor <[email protected]>
1 parent d5eeb13 commit 2e03797

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sql/variables/system_variables.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,14 @@ var systemVars = map[string]sql.SystemVariable{
10571057
Type: types.NewSystemIntType("innodb_autoinc_lock_mode", 0, 2, false),
10581058
Default: int64(2),
10591059
},
1060+
"innodb_buffer_pool_size": &sql.MysqlSystemVariable{
1061+
Name: "innodb_buffer_pool_size",
1062+
Scope: sql.GetMysqlScope(sql.SystemVariableScope_Global),
1063+
Dynamic: true,
1064+
SetVarHintApplies: false,
1065+
Type: types.NewSystemIntType("innodb_buffer_pool_size", 5242880, math.MaxInt64, false),
1066+
Default: int64(134217728),
1067+
},
10601068
// Row locking is currently not supported. This variable is provided for 3p tools, and we always return the
10611069
// Lowest value allowed by MySQL, which is 1. If you attempt to set this value to anything other than 1, errors ensue.
10621070
"innodb_lock_wait_timeout": &sql.MysqlSystemVariable{

0 commit comments

Comments
 (0)