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
805e8ffb
Commit
805e8ffb
authored
Feb 17, 2009
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test cases for new config variables and changed defaults, min and max values
parent
0421ec55
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
147 additions
and
57 deletions
+147
-57
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+1
-1
mysql-test/r/innodb_autoextend_increment_basic.result
mysql-test/r/innodb_autoextend_increment_basic.result
+3
-3
mysql-test/r/innodb_file_io_threads_basic.result
mysql-test/r/innodb_file_io_threads_basic.result
+72
-24
mysql-test/r/innodb_max_dirty_pages_pct_basic.result
mysql-test/r/innodb_max_dirty_pages_pct_basic.result
+14
-14
mysql-test/t/innodb_file_io_threads_basic.test
mysql-test/t/innodb_file_io_threads_basic.test
+56
-14
mysql-test/t/innodb_max_dirty_pages_pct_basic.test
mysql-test/t/innodb_max_dirty_pages_pct_basic.test
+1
-1
No files found.
mysql-test/r/innodb.result
View file @
805e8ffb
...
@@ -1738,7 +1738,7 @@ count(*)
...
@@ -1738,7 +1738,7 @@ count(*)
drop table t1;
drop table t1;
show status like "Innodb_buffer_pool_pages_total";
show status like "Innodb_buffer_pool_pages_total";
Variable_name Value
Variable_name Value
Innodb_buffer_pool_pages_total
512
Innodb_buffer_pool_pages_total
65536
show status like "Innodb_page_size";
show status like "Innodb_page_size";
Variable_name Value
Variable_name Value
Innodb_page_size 16384
Innodb_page_size 16384
...
...
mysql-test/r/innodb_autoextend_increment_basic.result
View file @
805e8ffb
SET @global_start_value = @@global.innodb_autoextend_increment ;
SET @global_start_value = @@global.innodb_autoextend_increment ;
SELECT @global_start_value;
SELECT @global_start_value;
@global_start_value
@global_start_value
8
64
'#--------------------FN_DYNVARS_046_01------------------------#'
'#--------------------FN_DYNVARS_046_01------------------------#'
SET @@global.innodb_autoextend_increment = 0;
SET @@global.innodb_autoextend_increment = 0;
Warnings:
Warnings:
...
@@ -9,13 +9,13 @@ Warning 1292 Truncated incorrect autoextend_increment value: '0'
...
@@ -9,13 +9,13 @@ Warning 1292 Truncated incorrect autoextend_increment value: '0'
SET @@global.innodb_autoextend_increment = DEFAULT;
SET @@global.innodb_autoextend_increment = DEFAULT;
SELECT @@global.innodb_autoextend_increment ;
SELECT @@global.innodb_autoextend_increment ;
@@global.innodb_autoextend_increment
@@global.innodb_autoextend_increment
8
64
'#---------------------FN_DYNVARS_046_02-------------------------#'
'#---------------------FN_DYNVARS_046_02-------------------------#'
SET innodb_autoextend_increment = 1;
SET innodb_autoextend_increment = 1;
ERROR HY000: Variable 'innodb_autoextend_increment' is a GLOBAL variable and should be set with SET GLOBAL
ERROR HY000: Variable 'innodb_autoextend_increment' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@innodb_autoextend_increment ;
SELECT @@innodb_autoextend_increment ;
@@innodb_autoextend_increment
@@innodb_autoextend_increment
8
64
SELECT local.innodb_autoextend_increment ;
SELECT local.innodb_autoextend_increment ;
ERROR 42S02: Unknown table 'local' in field list
ERROR 42S02: Unknown table 'local' in field list
SET global innodb_autoextend_increment = 0;
SET global innodb_autoextend_increment = 0;
...
...
mysql-test/r/innodb_file_io_threads_basic.result
View file @
805e8ffb
'#---------------------BS_STVARS_027_01----------------------#'
'#---------------------BS_STVARS_027_01----------------------#'
SELECT COUNT(@@GLOBAL.innodb_file_io_threads);
SELECT COUNT(@@GLOBAL.innodb_read_io_threads);
COUNT(@@GLOBAL.innodb_file_io_threads)
COUNT(@@GLOBAL.innodb_read_io_threads)
1
1 Expected
SELECT COUNT(@@GLOBAL.innodb_write_io_threads);
COUNT(@@GLOBAL.innodb_write_io_threads)
1
1
1 Expected
1 Expected
'#---------------------BS_STVARS_027_02----------------------#'
'#---------------------BS_STVARS_027_02----------------------#'
SET @@GLOBAL.innodb_file_io_threads=1;
SET @@GLOBAL.innodb_read_io_threads=1;
ERROR HY000: Variable 'innodb_file_io_threads' is a read only variable
ERROR HY000: Variable 'innodb_read_io_threads' is a read only variable
Expected error 'Read only variable'
SELECT COUNT(@@GLOBAL.innodb_read_io_threads);
COUNT(@@GLOBAL.innodb_read_io_threads)
1
1 Expected
SET @@GLOBAL.innodb_write_io_threads=1;
ERROR HY000: Variable 'innodb_write_io_threads' is a read only variable
Expected error 'Read only variable'
Expected error 'Read only variable'
SELECT COUNT(@@GLOBAL.innodb_
fil
e_io_threads);
SELECT COUNT(@@GLOBAL.innodb_
writ
e_io_threads);
COUNT(@@GLOBAL.innodb_
fil
e_io_threads)
COUNT(@@GLOBAL.innodb_
writ
e_io_threads)
1
1
1 Expected
1 Expected
'#---------------------BS_STVARS_027_03----------------------#'
'#---------------------BS_STVARS_027_03----------------------#'
SELECT @@GLOBAL.innodb_file_io_threads = VARIABLE_VALUE
SELECT @@GLOBAL.innodb_read_io_threads = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_read_io_threads';
@@GLOBAL.innodb_read_io_threads = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(@@GLOBAL.innodb_read_io_threads);
COUNT(@@GLOBAL.innodb_read_io_threads)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_read_io_threads';
COUNT(VARIABLE_VALUE)
1
1 Expected
SELECT @@GLOBAL.innodb_write_io_threads = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_
fil
e_io_threads';
WHERE VARIABLE_NAME='innodb_
writ
e_io_threads';
@@GLOBAL.innodb_
fil
e_io_threads = VARIABLE_VALUE
@@GLOBAL.innodb_
writ
e_io_threads = VARIABLE_VALUE
1
1
1 Expected
1 Expected
SELECT COUNT(@@GLOBAL.innodb_
fil
e_io_threads);
SELECT COUNT(@@GLOBAL.innodb_
writ
e_io_threads);
COUNT(@@GLOBAL.innodb_
fil
e_io_threads)
COUNT(@@GLOBAL.innodb_
writ
e_io_threads)
1
1
1 Expected
1 Expected
SELECT COUNT(VARIABLE_VALUE)
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_
fil
e_io_threads';
WHERE VARIABLE_NAME='innodb_
writ
e_io_threads';
COUNT(VARIABLE_VALUE)
COUNT(VARIABLE_VALUE)
1
1
1 Expected
1 Expected
'#---------------------BS_STVARS_027_04----------------------#'
'#---------------------BS_STVARS_027_04----------------------#'
SELECT @@innodb_file_io_threads = @@GLOBAL.innodb_file_io_threads;
SELECT @@innodb_read_io_threads = @@GLOBAL.innodb_read_io_threads;
@@innodb_file_io_threads = @@GLOBAL.innodb_file_io_threads
@@innodb_read_io_threads = @@GLOBAL.innodb_read_io_threads
1
1 Expected
SELECT @@innodb_write_io_threads = @@GLOBAL.innodb_write_io_threads;
@@innodb_write_io_threads = @@GLOBAL.innodb_write_io_threads
1
1
1 Expected
1 Expected
'#---------------------BS_STVARS_027_05----------------------#'
'#---------------------BS_STVARS_027_05----------------------#'
SELECT COUNT(@@innodb_file_io_threads);
SELECT COUNT(@@innodb_read_io_threads);
COUNT(@@innodb_file_io_threads)
COUNT(@@innodb_read_io_threads)
1
1 Expected
SELECT COUNT(@@local.innodb_read_io_threads);
ERROR HY000: Variable 'innodb_read_io_threads' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.innodb_read_io_threads);
ERROR HY000: Variable 'innodb_read_io_threads' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.innodb_read_io_threads);
COUNT(@@GLOBAL.innodb_read_io_threads)
1
1 Expected
SELECT innodb_read_io_threads = @@SESSION.innodb_read_io_threads;
ERROR 42S22: Unknown column 'innodb_read_io_threads' in 'field list'
Expected error 'Readonly variable'
SELECT COUNT(@@innodb_write_io_threads);
COUNT(@@innodb_write_io_threads)
1
1
1 Expected
1 Expected
SELECT COUNT(@@local.innodb_
fil
e_io_threads);
SELECT COUNT(@@local.innodb_
writ
e_io_threads);
ERROR HY000: Variable 'innodb_
fil
e_io_threads' is a GLOBAL variable
ERROR HY000: Variable 'innodb_
writ
e_io_threads' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.innodb_
fil
e_io_threads);
SELECT COUNT(@@SESSION.innodb_
writ
e_io_threads);
ERROR HY000: Variable 'innodb_
fil
e_io_threads' is a GLOBAL variable
ERROR HY000: Variable 'innodb_
writ
e_io_threads' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.innodb_
fil
e_io_threads);
SELECT COUNT(@@GLOBAL.innodb_
writ
e_io_threads);
COUNT(@@GLOBAL.innodb_
fil
e_io_threads)
COUNT(@@GLOBAL.innodb_
writ
e_io_threads)
1
1
1 Expected
1 Expected
SELECT innodb_
file_io_threads = @@SESSION.innodb_fil
e_io_threads;
SELECT innodb_
write_io_threads = @@SESSION.innodb_writ
e_io_threads;
ERROR 42S22: Unknown column 'innodb_
fil
e_io_threads' in 'field list'
ERROR 42S22: Unknown column 'innodb_
writ
e_io_threads' in 'field list'
Expected error 'Readonly variable'
Expected error 'Readonly variable'
mysql-test/r/innodb_max_dirty_pages_pct_basic.result
View file @
805e8ffb
SET @global_start_value = @@global.innodb_max_dirty_pages_pct;
SET @global_start_value = @@global.innodb_max_dirty_pages_pct;
SELECT @global_start_value;
SELECT @global_start_value;
@global_start_value
@global_start_value
90
75
'#--------------------FN_DYNVARS_046_01------------------------#'
'#--------------------FN_DYNVARS_046_01------------------------#'
SET @@global.innodb_max_dirty_pages_pct = 0;
SET @@global.innodb_max_dirty_pages_pct = 0;
SET @@global.innodb_max_dirty_pages_pct = DEFAULT;
SET @@global.innodb_max_dirty_pages_pct = DEFAULT;
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
90
75
'#---------------------FN_DYNVARS_046_02-------------------------#'
'#---------------------FN_DYNVARS_046_02-------------------------#'
SET innodb_max_dirty_pages_pct = 1;
SET innodb_max_dirty_pages_pct = 1;
ERROR HY000: Variable 'innodb_max_dirty_pages_pct' is a GLOBAL variable and should be set with SET GLOBAL
ERROR HY000: Variable 'innodb_max_dirty_pages_pct' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@innodb_max_dirty_pages_pct;
SELECT @@innodb_max_dirty_pages_pct;
@@innodb_max_dirty_pages_pct
@@innodb_max_dirty_pages_pct
90
75
SELECT local.innodb_max_dirty_pages_pct;
SELECT local.innodb_max_dirty_pages_pct;
ERROR 42S02: Unknown table 'local' in field list
ERROR 42S02: Unknown table 'local' in field list
SET global innodb_max_dirty_pages_pct = 0;
SET global innodb_max_dirty_pages_pct = 0;
...
@@ -29,33 +29,33 @@ SET @@global.innodb_max_dirty_pages_pct = 1;
...
@@ -29,33 +29,33 @@ SET @@global.innodb_max_dirty_pages_pct = 1;
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
1
1
SET @@global.innodb_max_dirty_pages_pct =
100
;
SET @@global.innodb_max_dirty_pages_pct =
99
;
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
100
99
'#--------------------FN_DYNVARS_046_04-------------------------#'
'#--------------------FN_DYNVARS_046_04-------------------------#'
SET @@global.innodb_max_dirty_pages_pct = -1;
SET @@global.innodb_max_dirty_pages_pct = -1;
Warnings:
Warnings:
Warning 1292 Truncated incorrect max_dirty_pages_pct value: '18446744073709551615'
Warning 1292 Truncated incorrect max_dirty_pages_pct value: '18446744073709551615'
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
100
99
SET @@global.innodb_max_dirty_pages_pct = "T";
SET @@global.innodb_max_dirty_pages_pct = "T";
ERROR 42000: Incorrect argument type to variable 'innodb_max_dirty_pages_pct'
ERROR 42000: Incorrect argument type to variable 'innodb_max_dirty_pages_pct'
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
100
99
SET @@global.innodb_max_dirty_pages_pct = "Y";
SET @@global.innodb_max_dirty_pages_pct = "Y";
ERROR 42000: Incorrect argument type to variable 'innodb_max_dirty_pages_pct'
ERROR 42000: Incorrect argument type to variable 'innodb_max_dirty_pages_pct'
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
100
99
SET @@global.innodb_max_dirty_pages_pct = 1001;
SET @@global.innodb_max_dirty_pages_pct = 1001;
Warnings:
Warnings:
Warning 1292 Truncated incorrect max_dirty_pages_pct value: '1001'
Warning 1292 Truncated incorrect max_dirty_pages_pct value: '1001'
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
100
99
'#----------------------FN_DYNVARS_046_05------------------------#'
'#----------------------FN_DYNVARS_046_05------------------------#'
SELECT @@global.innodb_max_dirty_pages_pct =
SELECT @@global.innodb_max_dirty_pages_pct =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
@@ -65,22 +65,22 @@ VARIABLE_VALUE
...
@@ -65,22 +65,22 @@ VARIABLE_VALUE
1
1
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
100
99
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_max_dirty_pages_pct';
WHERE VARIABLE_NAME='innodb_max_dirty_pages_pct';
VARIABLE_VALUE
VARIABLE_VALUE
100
99
'#---------------------FN_DYNVARS_046_06-------------------------#'
'#---------------------FN_DYNVARS_046_06-------------------------#'
SET @@global.innodb_max_dirty_pages_pct = OFF;
SET @@global.innodb_max_dirty_pages_pct = OFF;
ERROR 42000: Incorrect argument type to variable 'innodb_max_dirty_pages_pct'
ERROR 42000: Incorrect argument type to variable 'innodb_max_dirty_pages_pct'
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
100
99
SET @@global.innodb_max_dirty_pages_pct = ON;
SET @@global.innodb_max_dirty_pages_pct = ON;
ERROR 42000: Incorrect argument type to variable 'innodb_max_dirty_pages_pct'
ERROR 42000: Incorrect argument type to variable 'innodb_max_dirty_pages_pct'
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
100
99
'#---------------------FN_DYNVARS_046_07----------------------#'
'#---------------------FN_DYNVARS_046_07----------------------#'
SET @@global.innodb_max_dirty_pages_pct = TRUE;
SET @@global.innodb_max_dirty_pages_pct = TRUE;
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
...
@@ -93,4 +93,4 @@ SELECT @@global.innodb_max_dirty_pages_pct;
...
@@ -93,4 +93,4 @@ SELECT @@global.innodb_max_dirty_pages_pct;
SET @@global.innodb_max_dirty_pages_pct = @global_start_value;
SET @@global.innodb_max_dirty_pages_pct = @global_start_value;
SELECT @@global.innodb_max_dirty_pages_pct;
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
@@global.innodb_max_dirty_pages_pct
90
75
mysql-test/t/innodb_file_io_threads_basic.test
View file @
805e8ffb
...
@@ -28,7 +28,9 @@
...
@@ -28,7 +28,9 @@
####################################################################
####################################################################
# Displaying default value #
# Displaying default value #
####################################################################
####################################################################
SELECT
COUNT
(
@@
GLOBAL
.
innodb_file_io_threads
);
SELECT
COUNT
(
@@
GLOBAL
.
innodb_read_io_threads
);
--
echo
1
Expected
SELECT
COUNT
(
@@
GLOBAL
.
innodb_write_io_threads
);
--
echo
1
Expected
--
echo
1
Expected
...
@@ -38,10 +40,17 @@ SELECT COUNT(@@GLOBAL.innodb_file_io_threads);
...
@@ -38,10 +40,17 @@ SELECT COUNT(@@GLOBAL.innodb_file_io_threads);
####################################################################
####################################################################
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SET
@@
GLOBAL
.
innodb_
file
_io_threads
=
1
;
SET
@@
GLOBAL
.
innodb_
read
_io_threads
=
1
;
--
echo
Expected
error
'Read only variable'
--
echo
Expected
error
'Read only variable'
SELECT
COUNT
(
@@
GLOBAL
.
innodb_file_io_threads
);
SELECT
COUNT
(
@@
GLOBAL
.
innodb_read_io_threads
);
--
echo
1
Expected
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SET
@@
GLOBAL
.
innodb_write_io_threads
=
1
;
--
echo
Expected
error
'Read only variable'
SELECT
COUNT
(
@@
GLOBAL
.
innodb_write_io_threads
);
--
echo
1
Expected
--
echo
1
Expected
...
@@ -52,51 +61,84 @@ SELECT COUNT(@@GLOBAL.innodb_file_io_threads);
...
@@ -52,51 +61,84 @@ SELECT COUNT(@@GLOBAL.innodb_file_io_threads);
# Check if the value in GLOBAL Table matches value in variable #
# Check if the value in GLOBAL Table matches value in variable #
#################################################################
#################################################################
SELECT
@@
GLOBAL
.
innodb_
file
_io_threads
=
VARIABLE_VALUE
SELECT
@@
GLOBAL
.
innodb_
read
_io_threads
=
VARIABLE_VALUE
FROM
INFORMATION_SCHEMA
.
GLOBAL_VARIABLES
FROM
INFORMATION_SCHEMA
.
GLOBAL_VARIABLES
WHERE
VARIABLE_NAME
=
'innodb_
file
_io_threads'
;
WHERE
VARIABLE_NAME
=
'innodb_
read
_io_threads'
;
--
echo
1
Expected
--
echo
1
Expected
SELECT
COUNT
(
@@
GLOBAL
.
innodb_
file
_io_threads
);
SELECT
COUNT
(
@@
GLOBAL
.
innodb_
read
_io_threads
);
--
echo
1
Expected
--
echo
1
Expected
SELECT
COUNT
(
VARIABLE_VALUE
)
SELECT
COUNT
(
VARIABLE_VALUE
)
FROM
INFORMATION_SCHEMA
.
GLOBAL_VARIABLES
FROM
INFORMATION_SCHEMA
.
GLOBAL_VARIABLES
WHERE
VARIABLE_NAME
=
'innodb_file_io_threads'
;
WHERE
VARIABLE_NAME
=
'innodb_read_io_threads'
;
--
echo
1
Expected
SELECT
@@
GLOBAL
.
innodb_write_io_threads
=
VARIABLE_VALUE
FROM
INFORMATION_SCHEMA
.
GLOBAL_VARIABLES
WHERE
VARIABLE_NAME
=
'innodb_write_io_threads'
;
--
echo
1
Expected
SELECT
COUNT
(
@@
GLOBAL
.
innodb_write_io_threads
);
--
echo
1
Expected
--
echo
1
Expected
SELECT
COUNT
(
VARIABLE_VALUE
)
FROM
INFORMATION_SCHEMA
.
GLOBAL_VARIABLES
WHERE
VARIABLE_NAME
=
'innodb_write_io_threads'
;
--
echo
1
Expected
--
echo
'#---------------------BS_STVARS_027_04----------------------#'
--
echo
'#---------------------BS_STVARS_027_04----------------------#'
################################################################################
################################################################################
# Check if accessing variable with and without GLOBAL point to same variable #
# Check if accessing variable with and without GLOBAL point to same variable #
################################################################################
################################################################################
SELECT
@@
innodb_
file_io_threads
=
@@
GLOBAL
.
innodb_file
_io_threads
;
SELECT
@@
innodb_
read_io_threads
=
@@
GLOBAL
.
innodb_read
_io_threads
;
--
echo
1
Expected
--
echo
1
Expected
SELECT
@@
innodb_write_io_threads
=
@@
GLOBAL
.
innodb_write_io_threads
;
--
echo
1
Expected
--
echo
'#---------------------BS_STVARS_027_05----------------------#'
--
echo
'#---------------------BS_STVARS_027_05----------------------#'
################################################################################
################################################################################
# Check if innodb_file_io_threads can be accessed with and without @@ sign #
# Check if innodb_read_io_threads can be accessed with and without @@ sign #
# Check if innodb_write_io_threads can be accessed with and without @@ sign #
################################################################################
################################################################################
SELECT
COUNT
(
@@
innodb_file_io_threads
);
SELECT
COUNT
(
@@
innodb_read_io_threads
);
--
echo
1
Expected
--
Error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT
COUNT
(
@@
local
.
innodb_read_io_threads
);
--
echo
Expected
error
'Variable is a GLOBAL variable'
--
Error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT
COUNT
(
@@
SESSION
.
innodb_read_io_threads
);
--
echo
Expected
error
'Variable is a GLOBAL variable'
SELECT
COUNT
(
@@
GLOBAL
.
innodb_read_io_threads
);
--
echo
1
Expected
--
Error
ER_BAD_FIELD_ERROR
SELECT
innodb_read_io_threads
=
@@
SESSION
.
innodb_read_io_threads
;
--
echo
Expected
error
'Readonly variable'
SELECT
COUNT
(
@@
innodb_write_io_threads
);
--
echo
1
Expected
--
echo
1
Expected
--
Error
ER_INCORRECT_GLOBAL_LOCAL_VAR
--
Error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT
COUNT
(
@@
local
.
innodb_
fil
e_io_threads
);
SELECT
COUNT
(
@@
local
.
innodb_
writ
e_io_threads
);
--
echo
Expected
error
'Variable is a GLOBAL variable'
--
echo
Expected
error
'Variable is a GLOBAL variable'
--
Error
ER_INCORRECT_GLOBAL_LOCAL_VAR
--
Error
ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT
COUNT
(
@@
SESSION
.
innodb_
fil
e_io_threads
);
SELECT
COUNT
(
@@
SESSION
.
innodb_
writ
e_io_threads
);
--
echo
Expected
error
'Variable is a GLOBAL variable'
--
echo
Expected
error
'Variable is a GLOBAL variable'
SELECT
COUNT
(
@@
GLOBAL
.
innodb_
fil
e_io_threads
);
SELECT
COUNT
(
@@
GLOBAL
.
innodb_
writ
e_io_threads
);
--
echo
1
Expected
--
echo
1
Expected
--
Error
ER_BAD_FIELD_ERROR
--
Error
ER_BAD_FIELD_ERROR
SELECT
innodb_
file_io_threads
=
@@
SESSION
.
innodb_fil
e_io_threads
;
SELECT
innodb_
write_io_threads
=
@@
SESSION
.
innodb_writ
e_io_threads
;
--
echo
Expected
error
'Readonly variable'
--
echo
Expected
error
'Readonly variable'
mysql-test/t/innodb_max_dirty_pages_pct_basic.test
View file @
805e8ffb
...
@@ -72,7 +72,7 @@ SELECT @@global.innodb_max_dirty_pages_pct;
...
@@ -72,7 +72,7 @@ SELECT @@global.innodb_max_dirty_pages_pct;
SET
@@
global
.
innodb_max_dirty_pages_pct
=
1
;
SET
@@
global
.
innodb_max_dirty_pages_pct
=
1
;
SELECT
@@
global
.
innodb_max_dirty_pages_pct
;
SELECT
@@
global
.
innodb_max_dirty_pages_pct
;
SET
@@
global
.
innodb_max_dirty_pages_pct
=
100
;
SET
@@
global
.
innodb_max_dirty_pages_pct
=
99
;
SELECT
@@
global
.
innodb_max_dirty_pages_pct
;
SELECT
@@
global
.
innodb_max_dirty_pages_pct
;
--
echo
'#--------------------FN_DYNVARS_046_04-------------------------#'
--
echo
'#--------------------FN_DYNVARS_046_04-------------------------#'
...
...
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