1
0
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:
Sergei Golubchik
2015-05-10 11:44:08 +02:00
parent b4777bfc11
commit a583976e78
2 changed files with 14 additions and 0 deletions

View File

@@ -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.,

View File

@@ -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.,