mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-8015 InnoDB: Failing assertion: new_state->key_version != ENCRYPTION_KEY_VERSION_INVALID
InnoDB: refuse to start if encryption is requested but no encryption plugin is available
This commit is contained in:
@@ -3252,6 +3252,13 @@ innobase_init(
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((srv_encrypt_tables || srv_encrypt_log)
|
||||
&& !encryption_key_id_exists(FIL_DEFAULT_ENCRYPTION_KEY)) {
|
||||
sql_print_error("InnoDB: cannot enable encryption, "
|
||||
"encryption plugin is not available");
|
||||
goto error;
|
||||
}
|
||||
|
||||
os_innodb_umask = (ulint) my_umask;
|
||||
|
||||
/* First calculate the default path for innodb_data_home_dir etc.,
|
||||
|
||||
@@ -3633,6 +3633,13 @@ innobase_init(
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((srv_encrypt_tables || srv_encrypt_log)
|
||||
&& !encryption_key_id_exists(FIL_DEFAULT_ENCRYPTION_KEY)) {
|
||||
sql_print_error("InnoDB: cannot enable encryption, "
|
||||
"encryption plugin is not available");
|
||||
goto error;
|
||||
}
|
||||
|
||||
os_innodb_umask = (ulint) my_umask;
|
||||
|
||||
/* First calculate the default path for innodb_data_home_dir etc.,
|
||||
|
||||
Reference in New Issue
Block a user