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
b4777bfc
Commit
b4777bfc
authored
May 11, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup, use encryption_key_id_exists() where appropriate
parent
66380916
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
storage/innobase/fil/fil0fil.cc
storage/innobase/fil/fil0fil.cc
+1
-2
storage/maria/ma_crypt.c
storage/maria/ma_crypt.c
+1
-2
storage/xtradb/fil/fil0fil.cc
storage/xtradb/fil/fil0fil.cc
+1
-2
No files found.
storage/innobase/fil/fil0fil.cc
View file @
b4777bfc
...
...
@@ -1994,9 +1994,8 @@ fil_read_first_page(
if
((
cdata
&&
cdata
->
encryption
==
FIL_SPACE_ENCRYPTION_ON
)
||
(
srv_encrypt_tables
&&
cdata
&&
cdata
->
encryption
==
FIL_SPACE_ENCRYPTION_DEFAULT
))
{
uint
rc
=
encryption_key_get_latest_version
(
cdata
->
key_id
);
if
(
rc
==
ENCRYPTION_KEY_VERSION_INVALID
)
{
if
(
!
encryption_key_id_exists
(
cdata
->
key_id
)
)
{
ib_logf
(
IB_LOG_LEVEL_FATAL
,
"Tablespace id %ld encrypted but encryption service"
" not available. Can't continue opening tablespace.
\n
"
,
...
...
storage/maria/ma_crypt.c
View file @
b4777bfc
...
...
@@ -315,8 +315,7 @@ void ma_crypt_set_data_pagecache_callbacks(PAGECACHE_FILE *file,
__attribute__
((
unused
)))
{
/* Only use encryption if we have defined it */
if
(
encryption_key_get_latest_version
(
HARD_CODED_ENCRYPTION_KEY_ID
)
!=
ENCRYPTION_KEY_VERSION_INVALID
)
if
(
encryption_key_id_exists
(
HARD_CODED_ENCRYPTION_KEY_ID
))
{
file
->
pre_read_hook
=
ma_crypt_pre_read_hook
;
file
->
post_read_hook
=
ma_crypt_data_post_read_hook
;
...
...
storage/xtradb/fil/fil0fil.cc
View file @
b4777bfc
...
...
@@ -2032,9 +2032,8 @@ fil_read_first_page(
if
((
cdata
&&
cdata
->
encryption
==
FIL_SPACE_ENCRYPTION_ON
)
||
(
srv_encrypt_tables
&&
cdata
&&
cdata
->
encryption
==
FIL_SPACE_ENCRYPTION_DEFAULT
))
{
uint
rc
=
encryption_key_get_latest_version
(
cdata
->
key_id
);
if
(
rc
==
ENCRYPTION_KEY_VERSION_INVALID
)
{
if
(
!
encryption_key_id_exists
(
cdata
->
key_id
)
)
{
ib_logf
(
IB_LOG_LEVEL_FATAL
,
"Tablespace id %ld encrypted but encryption service"
" not available. Can't continue opening tablespace.
\n
"
,
...
...
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