Commit a583976e authored by Sergei Golubchik's avatar Sergei Golubchik

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
parent b4777bfc
......@@ -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.,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment