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
3a2ec3fc
Commit
3a2ec3fc
authored
Apr 08, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make innodb_encryption_debug test more robust
parent
f130da7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
mysql-test/suite/innodb/r/innodb_encryption_debug.result
mysql-test/suite/innodb/r/innodb_encryption_debug.result
+10
-10
mysql-test/suite/innodb/t/innodb_encryption_debug.test
mysql-test/suite/innodb/t/innodb_encryption_debug.test
+10
-2
No files found.
mysql-test/suite/innodb/r/innodb_encryption_debug.result
View file @
3a2ec3fc
...
@@ -5,15 +5,15 @@ innodb_encrypt_tables ON
...
@@ -5,15 +5,15 @@ innodb_encrypt_tables ON
innodb_encryption_rotate_key_age 2
innodb_encryption_rotate_key_age 2
innodb_encryption_rotation_iops 100
innodb_encryption_rotation_iops 100
innodb_encryption_threads 4
innodb_encryption_threads 4
select space,name,
min_key_version,current_key_version from information_schema.innodb_tablespaces_encryption
;
select space,name,
current_key_version from information_schema.innodb_tablespaces_encryption order by space
;
space name
min_key_version
current_key_version
space name current_key_version
1 mysql/innodb_table_stats 0
1
0 NULL
1
2 mysql/innodb_index_stats 0
1
1 mysql/innodb_table_stats
1
0 NULL 0
1
2 mysql/innodb_index_stats
1
set global debug_key_management_version=10;
set global debug_key_management_version=10;
select space,name,
min_key_version,current_key_version from information_schema.innodb_tablespaces_encryption
;
select space,name,
current_key_version from information_schema.innodb_tablespaces_encryption order by space
;
space name
min_key_version
current_key_version
space name current_key_version
1 mysql/innodb_table_stats 0
10
0 NULL
10
2 mysql/innodb_index_stats 0
10
1 mysql/innodb_table_stats
10
0 NULL 0
10
2 mysql/innodb_index_stats
10
set global debug_key_management_version=1;
set global debug_key_management_version=1;
mysql-test/suite/innodb/t/innodb_encryption_debug.test
View file @
3a2ec3fc
...
@@ -6,8 +6,16 @@ if (`select count(*) = 0 from information_schema.plugins
...
@@ -6,8 +6,16 @@ if (`select count(*) = 0 from information_schema.plugins
}
}
show
variables
like
'innodb_encrypt%'
;
show
variables
like
'innodb_encrypt%'
;
select
space
,
name
,
min_key_version
,
current_key_version
from
information_schema
.
innodb_tablespaces_encryption
;
let
$wait_condition
=
select
count
(
*
)
=
3
from
information_schema
.
innodb_tablespaces_encryption
where
current_key_version
=
1
;
--
source
include
/
wait_condition
.
inc
select
space
,
name
,
current_key_version
from
information_schema
.
innodb_tablespaces_encryption
order
by
space
;
set
global
debug_key_management_version
=
10
;
set
global
debug_key_management_version
=
10
;
select
space
,
name
,
min_key_version
,
current_key_version
from
information_schema
.
innodb_tablespaces_encryption
;
let
$wait_condition
=
select
count
(
*
)
=
3
from
information_schema
.
innodb_tablespaces_encryption
where
current_key_version
=
10
;
--
source
include
/
wait_condition
.
inc
select
space
,
name
,
current_key_version
from
information_schema
.
innodb_tablespaces_encryption
order
by
space
;
set
global
debug_key_management_version
=
1
;
set
global
debug_key_management_version
=
1
;
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