Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
80baf58e
Commit
80baf58e
authored
Oct 15, 2008
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scaled back to number of open cached tables to 400 in open_cache as well as definition_cache
Also fixed test cases related to this
parent
a6a94f83
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
18 deletions
+18
-18
mysql-test/r/table_definition_cache_basic.result
mysql-test/r/table_definition_cache_basic.result
+6
-6
mysql-test/r/table_open_cache_basic.result
mysql-test/r/table_open_cache_basic.result
+5
-5
mysql-test/t/table_definition_cache_basic.test
mysql-test/t/table_definition_cache_basic.test
+2
-2
mysql-test/t/table_open_cache_basic.test
mysql-test/t/table_open_cache_basic.test
+3
-3
sql/mysql_priv.h
sql/mysql_priv.h
+2
-2
No files found.
mysql-test/r/table_definition_cache_basic.result
View file @
80baf58e
SET @start_value = @@global.table_definition_cache;
SET @start_value = @@global.table_definition_cache;
SELECT @start_value;
SELECT @start_value;
@start_value
@start_value
256
400
'#--------------------FN_DYNVARS_019_01------------------------#'
'#--------------------FN_DYNVARS_019_01------------------------#'
SET @@global.table_definition_cache = 100;
SET @@global.table_definition_cache = 100;
Warnings:
Warnings:
...
@@ -9,12 +9,12 @@ Warning 1292 Truncated incorrect table_definition_cache value: '100'
...
@@ -9,12 +9,12 @@ Warning 1292 Truncated incorrect table_definition_cache value: '100'
SET @@global.table_definition_cache = DEFAULT;
SET @@global.table_definition_cache = DEFAULT;
SELECT @@global.table_definition_cache;
SELECT @@global.table_definition_cache;
@@global.table_definition_cache
@@global.table_definition_cache
256
400
'#---------------------FN_DYNVARS_019_02-------------------------#'
'#---------------------FN_DYNVARS_019_02-------------------------#'
SET @@global.table_definition_cache = DEFAULT;
SET @@global.table_definition_cache = DEFAULT;
SELECT @@global.table_definition_cache =
128
;
SELECT @@global.table_definition_cache =
400
;
@@global.table_definition_cache =
128
@@global.table_definition_cache =
400
0
1
'#--------------------FN_DYNVARS_019_03------------------------#'
'#--------------------FN_DYNVARS_019_03------------------------#'
SET @@global.table_definition_cache = 1;
SET @@global.table_definition_cache = 1;
Warnings:
Warnings:
...
@@ -109,4 +109,4 @@ ERROR 42S22: Unknown column 'table_definition_cache' in 'field list'
...
@@ -109,4 +109,4 @@ ERROR 42S22: Unknown column 'table_definition_cache' in 'field list'
SET @@global.table_definition_cache = @start_value;
SET @@global.table_definition_cache = @start_value;
SELECT @@global.table_definition_cache;
SELECT @@global.table_definition_cache;
@@global.table_definition_cache
@@global.table_definition_cache
256
400
mysql-test/r/table_open_cache_basic.result
View file @
80baf58e
SET @start_value = @@global.table_open_cache ;
SET @start_value = @@global.table_open_cache ;
SELECT @start_value;
SELECT @start_value;
@start_value
@start_value
64
400
'#--------------------FN_DYNVARS_001_01------------------------#'
'#--------------------FN_DYNVARS_001_01------------------------#'
SET @@global.table_open_cache = 99;
SET @@global.table_open_cache = 99;
SET @@global.table_open_cache = DeFAULT;
SET @@global.table_open_cache = DeFAULT;
SELECT @@global.table_open_cache;
SELECT @@global.table_open_cache;
@@global.table_open_cache
@@global.table_open_cache
64
400
'#---------------------FN_DYNVARS_001_02-------------------------#'
'#---------------------FN_DYNVARS_001_02-------------------------#'
SET @@global.table_open_cache = Default;
SET @@global.table_open_cache = Default;
SELECT @@global.table_open_cache =
64
;
SELECT @@global.table_open_cache =
400
;
@@global.table_open_cache =
64
@@global.table_open_cache =
400
1
1
'#--------------------FN_DYNVARS_001_03------------------------#'
'#--------------------FN_DYNVARS_001_03------------------------#'
SET @@global.table_open_cache = 8;
SET @@global.table_open_cache = 8;
...
@@ -105,4 +105,4 @@ ERROR 42S22: Unknown column 'table_open_cache' in 'field list'
...
@@ -105,4 +105,4 @@ ERROR 42S22: Unknown column 'table_open_cache' in 'field list'
SET @@global.table_open_cache = @start_value;
SET @@global.table_open_cache = @start_value;
SELECT @@global.table_open_cache ;
SELECT @@global.table_open_cache ;
@@global.table_open_cache
@@global.table_open_cache
64
400
mysql-test/t/table_definition_cache_basic.test
View file @
80baf58e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# Scope: GLOBAL #
# Scope: GLOBAL #
# Access Type: Dynamic #
# Access Type: Dynamic #
# Data Type: Numeric #
# Data Type: Numeric #
# Default Value:
128
#
# Default Value:
400
#
# Range: 1 - 524288 #
# Range: 1 - 524288 #
# #
# #
# #
# #
...
@@ -52,7 +52,7 @@ SELECT @@global.table_definition_cache;
...
@@ -52,7 +52,7 @@ SELECT @@global.table_definition_cache;
###############################################
###############################################
SET
@@
global
.
table_definition_cache
=
DEFAULT
;
SET
@@
global
.
table_definition_cache
=
DEFAULT
;
SELECT
@@
global
.
table_definition_cache
=
128
;
SELECT
@@
global
.
table_definition_cache
=
400
;
--
echo
'#--------------------FN_DYNVARS_019_03------------------------#'
--
echo
'#--------------------FN_DYNVARS_019_03------------------------#'
...
...
mysql-test/t/table_open_cache_basic.test
View file @
80baf58e
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
# Scope: GLOBAL #
# Scope: GLOBAL #
# Access Type: Dynamic #
# Access Type: Dynamic #
# Data Type: numeric #
# Data Type: numeric #
# Default Value:
64
#
# Default Value:
400
#
# Range:
1
-524288 #
# Range:
64
-524288 #
# #
# #
# #
# #
# Creation Date: 2008-02-13 #
# Creation Date: 2008-02-13 #
...
@@ -54,7 +54,7 @@ SELECT @@global.table_open_cache;
...
@@ -54,7 +54,7 @@ SELECT @@global.table_open_cache;
###############################################
###############################################
SET
@@
global
.
table_open_cache
=
Default
;
SET
@@
global
.
table_open_cache
=
Default
;
SELECT
@@
global
.
table_open_cache
=
64
;
SELECT
@@
global
.
table_open_cache
=
400
;
--
echo
'#--------------------FN_DYNVARS_001_03------------------------#'
--
echo
'#--------------------FN_DYNVARS_001_03------------------------#'
########################################################################
########################################################################
...
...
sql/mysql_priv.h
View file @
80baf58e
...
@@ -260,8 +260,8 @@ protected:
...
@@ -260,8 +260,8 @@ protected:
#define MAX_FIELDS_BEFORE_HASH 32
#define MAX_FIELDS_BEFORE_HASH 32
#define USER_VARS_HASH_SIZE 16
#define USER_VARS_HASH_SIZE 16
#define TABLE_OPEN_CACHE_MIN 64
#define TABLE_OPEN_CACHE_MIN 64
#define TABLE_OPEN_CACHE_DEFAULT
1024
#define TABLE_OPEN_CACHE_DEFAULT
400
#define TABLE_DEF_CACHE_DEFAULT
1024
#define TABLE_DEF_CACHE_DEFAULT
400
/**
/**
We must have room for at least 256 table definitions in the table
We must have room for at least 256 table definitions in the table
cache, since otherwise there is no chance prepared
cache, since otherwise there is no chance prepared
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment