mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-19914 Server startup fails while dropping garbage encrypted tablespace if innodb_encryption_threads > 0
- Avoiding accessing encryption thread mutex before initiating the encryption threads
This commit is contained in:
parent
ed6da51f3e
commit
85d0a1955f
2 changed files with 3 additions and 1 deletions
|
@ -123,6 +123,7 @@ SET DEBUG_SYNC = 'now WAIT_FOR done';
|
|||
SET GLOBAL innodb_flush_log_at_trx_commit=1;
|
||||
COMMIT;
|
||||
|
||||
let $restart_parameters = --innodb_encryption_threads=2;
|
||||
--let $shutdown_timeout= 0
|
||||
--source include/restart_mysqld.inc
|
||||
disconnect con1;
|
||||
|
|
|
@ -2414,7 +2414,8 @@ fil_space_crypt_close_tablespace(
|
|||
{
|
||||
fil_space_crypt_t* crypt_data = space->crypt_data;
|
||||
|
||||
if (!crypt_data || srv_n_fil_crypt_threads == 0) {
|
||||
if (!crypt_data || srv_n_fil_crypt_threads == 0
|
||||
|| !fil_crypt_threads_inited) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue