summaryrefslogtreecommitdiff
path: root/sql/sys_vars.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2016-06-29 16:33:08 +0400
committerSergey Vojtovich <svoj@mariadb.org>2016-09-16 15:46:15 +0400
commit7e9ac7b8ac6752b741099a8dbff8a55736f0f32c (patch)
treee938bb1fc2d505ac1446d48826df5f7df23ae950 /sql/sys_vars.cc
parent6c1c27ea11559e6244694db0d61fa9a52d43ab42 (diff)
downloadmariadb-git-7e9ac7b8ac6752b741099a8dbff8a55736f0f32c.tar.gz
MDEV-10296 - Multi-instance table cache
Improve scalability by implementing multi-instance table cache.
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r--sql/sys_vars.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc
index ffc7bb36567..91568dd9dd2 100644
--- a/sql/sys_vars.cc
+++ b/sql/sys_vars.cc
@@ -3227,6 +3227,11 @@ static Sys_var_ulong Sys_table_cache_size(
BLOCK_SIZE(1), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
ON_UPDATE(fix_table_open_cache));
+static Sys_var_ulong Sys_table_cache_instances(
+ "table_open_cache_instances", "The number of table cache instances",
+ READ_ONLY GLOBAL_VAR(tc_instances), CMD_LINE(REQUIRED_ARG),
+ VALID_RANGE(1, 64), DEFAULT(1), BLOCK_SIZE(1));
+
static Sys_var_ulong Sys_thread_cache_size(
"thread_cache_size",
"How many threads we should keep in a cache for reuse. These are freed after 5 minutes of idle time",