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
804a59e4
Commit
804a59e4
authored
Nov 29, 2015
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8923: innodb_buffer_pool_dump_pct add test cases
Add testcases for innodb_buffer_pool_dump_pct
parent
a816df70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
mysql-test/suite/sys_vars/r/innodb_buffer_pool_dump_pct.result
...-test/suite/sys_vars/r/innodb_buffer_pool_dump_pct.result
+20
-0
mysql-test/suite/sys_vars/t/innodb_buffer_pool_dump_pct.test
mysql-test/suite/sys_vars/t/innodb_buffer_pool_dump_pct.test
+34
-0
No files found.
mysql-test/suite/sys_vars/r/innodb_buffer_pool_dump_pct.result
0 → 100644
View file @
804a59e4
SET @orig = @@global.innodb_buffer_pool_dump_pct;
SELECT @orig;
@orig
100
SET GLOBAL innodb_buffer_pool_dump_pct=3, GLOBAL innodb_buffer_pool_dump_now = ON;
SET GLOBAL innodb_buffer_pool_dump_pct=0;
SELECT @@global.innodb_buffer_pool_dump_pct;
@@global.innodb_buffer_pool_dump_pct
1
SHOW WARNINGS;
Level Code Message
Warning 1292 Truncated incorrect innodb_buffer_pool_dump_pct value: '0'
SET GLOBAL innodb_buffer_pool_dump_pct=101;
SELECT @@global.innodb_buffer_pool_dump_pct;
@@global.innodb_buffer_pool_dump_pct
100
SHOW WARNINGS;
Level Code Message
Warning 1292 Truncated incorrect innodb_buffer_pool_dump_pct value: '101'
SET GLOBAL innodb_buffer_pool_dump_pct=@orig;
mysql-test/suite/sys_vars/t/innodb_buffer_pool_dump_pct.test
0 → 100644
View file @
804a59e4
#
# Basic test for innodb_buffer_pool_dump_pct
#
--
source
include
/
have_innodb
.
inc
# Check the default value
SET
@
orig
=
@@
global
.
innodb_buffer_pool_dump_pct
;
SELECT
@
orig
;
# Do the dump
SET
GLOBAL
innodb_buffer_pool_dump_pct
=
3
,
GLOBAL
innodb_buffer_pool_dump_now
=
ON
;
# Wait for the dump to complete
let
$wait_condition
=
SELECT
SUBSTR
(
variable_value
,
1
,
33
)
=
'Buffer pool(s) dump completed at '
FROM
information_schema
.
global_status
WHERE
LOWER
(
variable_name
)
=
'innodb_buffer_pool_dump_status'
;
--
source
include
/
wait_condition
.
inc
# Confirm that the dump file has been created
--
let
$file
=
`SELECT CONCAT(@@datadir, @@global.innodb_buffer_pool_filename)`
--
file_exists
$file
--
disable_warnings
SET
GLOBAL
innodb_buffer_pool_dump_pct
=
0
;
SELECT
@@
global
.
innodb_buffer_pool_dump_pct
;
SHOW
WARNINGS
;
SET
GLOBAL
innodb_buffer_pool_dump_pct
=
101
;
SELECT
@@
global
.
innodb_buffer_pool_dump_pct
;
SHOW
WARNINGS
;
--
enable_warnings
SET
GLOBAL
innodb_buffer_pool_dump_pct
=@
orig
;
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