From 3da897775a9fc50d8df346c8c17dee2b11a610c7 Mon Sep 17 00:00:00 2001 From: James Cor Date: Fri, 22 Nov 2024 14:33:18 -0800 Subject: [PATCH] add innodb_buffer_pool_size system variable --- sql/variables/system_variables.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sql/variables/system_variables.go b/sql/variables/system_variables.go index 0e829ff741..7bd73bf053 100644 --- a/sql/variables/system_variables.go +++ b/sql/variables/system_variables.go @@ -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{