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
0e8cb572
Commit
0e8cb572
authored
Feb 17, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix innodb_encryption-page-compression test by force flushing dirty
pages.
parent
55bc3f1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
mysql-test/suite/encryption/r/innodb_encryption-page-compression.result
...te/encryption/r/innodb_encryption-page-compression.result
+12
-0
mysql-test/suite/encryption/t/innodb_encryption-page-compression.test
...uite/encryption/t/innodb_encryption-page-compression.test
+16
-3
No files found.
mysql-test/suite/encryption/r/innodb_encryption-page-compression.result
View file @
0e8cb572
...
...
@@ -135,6 +135,12 @@ count(*)
select count(*) from innodb_page_compressed9 where c1 < 500000;
count(*)
2000
flush tables innodb_page_compressed1, innodb_page_compressed2,
innodb_page_compressed3, innodb_page_compressed4,
innodb_page_compressed5, innodb_page_compressed6,
innodb_page_compressed7, innodb_page_compressed8,
innodb_page_compressed9 for export;
unlock tables;
SELECT variable_value > 0 FROM information_schema.global_status WHERE variable_name = 'innodb_num_pages_encrypted';
variable_value > 0
1
...
...
@@ -152,6 +158,12 @@ update innodb_page_compressed6 set c1 = c1 + 1;
update innodb_page_compressed7 set c1 = c1 + 1;
update innodb_page_compressed8 set c1 = c1 + 1;
update innodb_page_compressed9 set c1 = c1 + 1;
flush tables innodb_page_compressed1, innodb_page_compressed2,
innodb_page_compressed3, innodb_page_compressed4,
innodb_page_compressed5, innodb_page_compressed6,
innodb_page_compressed7, innodb_page_compressed8,
innodb_page_compressed9 for export;
unlock tables;
SELECT variable_value > 0 FROM information_schema.global_status WHERE variable_name = 'innodb_num_pages_encrypted';
variable_value > 0
1
...
...
mysql-test/suite/encryption/t/innodb_encryption-page-compression.test
View file @
0e8cb572
...
...
@@ -81,6 +81,14 @@ select count(*) from innodb_page_compressed7 where c1 < 500000;
select
count
(
*
)
from
innodb_page_compressed8
where
c1
<
500000
;
select
count
(
*
)
from
innodb_page_compressed9
where
c1
<
500000
;
flush
tables
innodb_page_compressed1
,
innodb_page_compressed2
,
innodb_page_compressed3
,
innodb_page_compressed4
,
innodb_page_compressed5
,
innodb_page_compressed6
,
innodb_page_compressed7
,
innodb_page_compressed8
,
innodb_page_compressed9
for
export
;
unlock
tables
;
let
$wait_condition
=
select
variable_value
>
0
from
information_schema
.
global_status
where
variable_name
=
'INNODB_NUM_PAGES_PAGE_COMPRESSED'
;
--
source
include
/
wait_condition
.
inc
let
$wait_condition
=
select
variable_value
>
0
from
information_schema
.
global_status
where
variable_name
=
'INNODB_NUM_PAGES_ENCRYPTED'
;
...
...
@@ -104,9 +112,14 @@ update innodb_page_compressed7 set c1 = c1 + 1;
update
innodb_page_compressed8
set
c1
=
c1
+
1
;
update
innodb_page_compressed9
set
c1
=
c1
+
1
;
let
$wait_condition
=
select
variable_value
>
0
from
information_schema
.
global_status
where
variable_name
=
'INNODB_NUM_PAGES_ENCRYPTED'
;
--
source
include
/
wait_condition
.
inc
let
$wait_condition
=
select
variable_value
>
0
from
information_schema
.
global_status
where
variable_name
=
'INNODB_NUM_PAGES_PAGE_COMPRESSED'
;
flush
tables
innodb_page_compressed1
,
innodb_page_compressed2
,
innodb_page_compressed3
,
innodb_page_compressed4
,
innodb_page_compressed5
,
innodb_page_compressed6
,
innodb_page_compressed7
,
innodb_page_compressed8
,
innodb_page_compressed9
for
export
;
unlock
tables
;
--
source
include
/
wait_condition
.
inc
SELECT
variable_value
>
0
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_num_pages_encrypted'
;
...
...
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