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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e44633c8
Commit
e44633c8
authored
May 26, 2010
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename "partitioned key cache" to "segmented"
parent
5379038a
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
157 additions
and
155 deletions
+157
-155
mysql-test/r/key_cache.result
mysql-test/r/key_cache.result
+88
-88
mysql-test/suite/funcs_1/r/is_columns_is.result
mysql-test/suite/funcs_1/r/is_columns_is.result
+4
-4
mysql-test/t/key_cache.test
mysql-test/t/key_cache.test
+56
-54
mysql-test/t/select_pkeycache-master.opt
mysql-test/t/select_pkeycache-master.opt
+1
-1
mysql-test/t/select_pkeycache.test
mysql-test/t/select_pkeycache.test
+2
-2
sql/mysqld.cc
sql/mysqld.cc
+3
-3
sql/set_var.cc
sql/set_var.cc
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+2
-2
No files found.
mysql-test/r/key_cache.result
View file @
e44633c8
This diff is collapsed.
Click to expand it.
mysql-test/suite/funcs_1/r/is_columns_is.result
View file @
e44633c8
...
...
@@ -234,10 +234,10 @@ NULL information_schema KEY_CACHES BLOCK_SIZE 5 0 NO bigint NULL NULL 19 0 NULL
NULL information_schema KEY_CACHES DIRTY_BLOCKS 8 0 NO bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema KEY_CACHES FULL_SIZE 4 0 NO bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema KEY_CACHES KEY_CACHE_NAME 1 NO varchar 192 576 NULL NULL utf8 utf8_general_ci varchar(192) select
NULL information_schema KEY_CACHES PARTITIONS 2 NULL YES int NULL NULL 10 0 NULL NULL int(3) unsigned select
NULL information_schema KEY_CACHES PARTITION_NUMBER 3 NULL YES int NULL NULL 10 0 NULL NULL int(3) unsigned select
NULL information_schema KEY_CACHES READS 10 0 NO bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema KEY_CACHES READ_REQUESTS 9 0 NO bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema KEY_CACHES SEGMENTS 2 NULL YES int NULL NULL 10 0 NULL NULL int(3) unsigned select
NULL information_schema KEY_CACHES SEGMENT_NUMBER 3 NULL YES int NULL NULL 10 0 NULL NULL int(3) unsigned select
NULL information_schema KEY_CACHES UNUSED_BLOCKS 7 0 NO bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema KEY_CACHES USED_BLOCKS 6 0 NO bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema KEY_CACHES WRITES 12 0 NO bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
...
...
@@ -756,8 +756,8 @@ NULL information_schema INNODB_TRX trx_weight bigint NULL NULL NULL NULL bigint(
NULL information_schema INNODB_TRX trx_mysql_thread_id bigint NULL NULL NULL NULL bigint(21) unsigned
3.0000 information_schema INNODB_TRX trx_query varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
3.0000 information_schema KEY_CACHES KEY_CACHE_NAME varchar 192 576 utf8 utf8_general_ci varchar(192)
NULL information_schema KEY_CACHES
PARTITION
S int NULL NULL NULL NULL int(3) unsigned
NULL information_schema KEY_CACHES
PARTITION
_NUMBER int NULL NULL NULL NULL int(3) unsigned
NULL information_schema KEY_CACHES
SEGMENT
S int NULL NULL NULL NULL int(3) unsigned
NULL information_schema KEY_CACHES
SEGMENT
_NUMBER int NULL NULL NULL NULL int(3) unsigned
NULL information_schema KEY_CACHES FULL_SIZE bigint NULL NULL NULL NULL bigint(21) unsigned
NULL information_schema KEY_CACHES BLOCK_SIZE bigint NULL NULL NULL NULL bigint(21) unsigned
NULL information_schema KEY_CACHES USED_BLOCKS bigint NULL NULL NULL NULL bigint(21) unsigned
...
...
mysql-test/t/key_cache.test
View file @
e44633c8
This diff is collapsed.
Click to expand it.
mysql-test/t/select_pkeycache-master.opt
View file @
e44633c8
--key_cache_
partition
s=7
--key_cache_
segment
s=7
mysql-test/t/select_pkeycache.test
View file @
e44633c8
#
# Run select.test
partitioned default key cache (with 7 partition
s)
# (see setting the number of
partition
s in select_pkecache-master.opt)
# Run select.test
with the segmented default key cache (with 7 segment
s)
# (see setting the number of
segment
s in select_pkecache-master.opt)
# The result is expected the same as for select.test
#
...
...
sql/mysqld.cc
View file @
e44633c8
...
...
@@ -6939,13 +6939,13 @@ log and this option does nothing anymore.",
0
,
(
GET_ULONG
|
GET_ASK_ADDR
),
REQUIRED_ARG
,
KEY_CACHE_BLOCK_SIZE
,
512
,
1024
*
16
,
0
,
512
,
0
},
{
"key_cache_division_limit"
,
OPT_KEY_CACHE_DIVISION_LIMIT
,
"The minimum percentage of warm blocks in key cache"
,
"The minimum percentage of warm blocks in
a
key cache"
,
(
uchar
**
)
&
dflt_key_cache_var
.
param_division_limit
,
(
uchar
**
)
0
,
0
,
(
GET_ULONG
|
GET_ASK_ADDR
)
,
REQUIRED_ARG
,
100
,
1
,
100
,
0
,
1
,
0
},
{
"key_cache_
partition
s"
,
OPT_KEY_CACHE_PARTITIONS
,
"The number of
partitions in
key cache"
,
{
"key_cache_
segment
s"
,
OPT_KEY_CACHE_PARTITIONS
,
"The number of
segments in a
key cache"
,
(
uchar
**
)
&
dflt_key_cache_var
.
param_partitions
,
(
uchar
**
)
0
,
0
,
(
GET_ULONG
|
GET_ASK_ADDR
),
REQUIRED_ARG
,
DEFAULT_KEY_CACHE_PARTITIONS
,
...
...
sql/set_var.cc
View file @
e44633c8
...
...
@@ -330,7 +330,7 @@ static sys_var_key_cache_long sys_key_cache_age_threshold(&vars,
"key_cache_age_threshold"
,
offsetof
(
KEY_CACHE
,
param_age_threshold
));
static
sys_var_key_cache_long
sys_key_cache_partitions
(
&
vars
,
"key_cache_
partition
s"
,
"key_cache_
segment
s"
,
offsetof
(
KEY_CACHE
,
param_partitions
));
static
sys_var_const
sys_language
(
&
vars
,
"language"
,
OPT_GLOBAL
,
SHOW_CHAR
,
...
...
sql/sql_show.cc
View file @
e44633c8
...
...
@@ -7366,9 +7366,9 @@ ST_FIELD_INFO referential_constraints_fields_info[]=
ST_FIELD_INFO
keycache_fields_info
[]
=
{
{
"KEY_CACHE_NAME"
,
NAME_LEN
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"
PARTITION
S"
,
3
,
MYSQL_TYPE_LONG
,
0
,
{
"
SEGMENT
S"
,
3
,
MYSQL_TYPE_LONG
,
0
,
(
MY_I_S_MAYBE_NULL
|
MY_I_S_UNSIGNED
)
,
0
,
SKIP_OPEN_TABLE
},
{
"
PARTITION
_NUMBER"
,
3
,
MYSQL_TYPE_LONG
,
0
,
{
"
SEGMENT
_NUMBER"
,
3
,
MYSQL_TYPE_LONG
,
0
,
(
MY_I_S_MAYBE_NULL
|
MY_I_S_UNSIGNED
),
0
,
SKIP_OPEN_TABLE
},
{
"FULL_SIZE"
,
MY_INT64_NUM_DECIMAL_DIGITS
,
MYSQL_TYPE_LONGLONG
,
0
,
(
MY_I_S_UNSIGNED
),
0
,
SKIP_OPEN_TABLE
},
...
...
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