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
241d30d3
Commit
241d30d3
authored
Jun 21, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After-merge fixes for MDEV-14180
parent
c9a85fb1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
mysql-test/suite/encryption/r/innodb-first-page-read.result
mysql-test/suite/encryption/r/innodb-first-page-read.result
+2
-0
mysql-test/suite/encryption/r/innodb-key-rotation-disable.result
...est/suite/encryption/r/innodb-key-rotation-disable.result
+2
-0
mysql-test/suite/encryption/t/innodb-first-page-read.test
mysql-test/suite/encryption/t/innodb-first-page-read.test
+7
-1
storage/innobase/fil/fil0fil.cc
storage/innobase/fil/fil0fil.cc
+5
-3
No files found.
mysql-test/suite/encryption/r/innodb-first-page-read.result
View file @
241d30d3
...
...
@@ -66,6 +66,8 @@ VARIABLE_VALUE <= 29
1
set global innodb_encrypt_tables=OFF;
# wait until tables are decrypted
SET GLOBAL innodb_max_dirty_pages_pct=0.0;
SET GLOBAL innodb_max_dirty_pages_pct_lwm=0.0;
# result should be actual number of tables except remote tables could be read twice
# i.e. < 23 + 3*2 = 29
SELECT VARIABLE_VALUE <= 29 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'innodb_pages0_read';
...
...
mysql-test/suite/encryption/r/innodb-key-rotation-disable.result
View file @
241d30d3
SET GLOBAL innodb_file_per_table = ON;
set global innodb_compression_algorithm = 1;
create database enctests;
use enctests;
create table t1(a int not null primary key, b char(200)) engine=innodb;
...
...
mysql-test/suite/encryption/t/innodb-first-page-read.test
View file @
241d30d3
...
...
@@ -77,7 +77,13 @@ SELECT VARIABLE_VALUE <= 29 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABL
set
global
innodb_encrypt_tables
=
OFF
;
--
echo
# wait until tables are decrypted
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
SET
GLOBAL
innodb_max_dirty_pages_pct
=
0.0
;
SET
GLOBAL
innodb_max_dirty_pages_pct_lwm
=
0.0
;
let
$wait_condition
=
SELECT
variable_value
=
0
FROM
information_schema
.
global_status
WHERE
variable_name
=
'INNODB_BUFFER_POOL_PAGES_DIRTY'
;
--
source
include
/
wait_condition
.
inc
--
echo
# result should be actual number of tables except remote tables could be read twice
...
...
storage/innobase/fil/fil0fil.cc
View file @
241d30d3
...
...
@@ -1421,10 +1421,12 @@ fil_space_create(
encryption threads. */
fil_system
.
default_encrypt_tables
.
push_back
(
*
space
);
space
->
is_in_default_encrypt
=
true
;
mutex_exit
(
&
fil_system
.
mutex
);
}
mutex_exit
(
&
fil_system
.
mutex
);
if
(
rotate
&&
srv_n_fil_crypt_threads_started
)
{
os_event_set
(
fil_crypt_threads_event
);
}
else
{
mutex_exit
(
&
fil_system
.
mutex
);
}
return
(
space
);
...
...
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