diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-17 11:24:38 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-17 11:24:38 +0200 |
commit | 8e80fd6bfdf2ea7d1870662ecd4d8129f3c76301 (patch) | |
tree | c3ed8b49caac6119deb2e3839f8c0b8662e35b8b /sql/sys_vars.cc | |
parent | f3e9d9a6e6b2614bf5d57ccf9434c980e4a90424 (diff) | |
parent | c1aae370879490dc0a3cd63c5b1010fa21b1f62c (diff) | |
download | mariadb-git-8e80fd6bfdf2ea7d1870662ecd4d8129f3c76301.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r-- | sql/sys_vars.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index 391772d1191..1ec035f35ae 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -3229,11 +3229,15 @@ static Sys_var_charptr Sys_system_time_zone( CMD_LINE_HELP_ONLY, IN_SYSTEM_CHARSET, DEFAULT(system_time_zone)); +/* + If One use views with prepared statements this should be bigger than + table_open_cache (now we allow 2 times bigger value) +*/ static Sys_var_ulong Sys_table_def_size( "table_definition_cache", "The number of cached table definitions", GLOBAL_VAR(tdc_size), CMD_LINE(REQUIRED_ARG), - VALID_RANGE(TABLE_DEF_CACHE_MIN, 512*1024), + VALID_RANGE(TABLE_DEF_CACHE_MIN, 2*1024*1024), DEFAULT(TABLE_DEF_CACHE_DEFAULT), BLOCK_SIZE(1)); @@ -3245,7 +3249,7 @@ static bool fix_table_open_cache(sys_var *, THD *, enum_var_type) return false; } - +/* Check the table_definition_cache comment if makes changes */ static Sys_var_ulong Sys_table_cache_size( "table_open_cache", "The number of cached open tables", GLOBAL_VAR(tc_size), CMD_LINE(REQUIRED_ARG), |