MDEV-18183 Server startup fails while dropping garbage encrypted tablespace

- There is no need to wait for crypt thread to stop accessing space while
dropping the garbage encrypted tablespace during recover.
parent 69328c31
......@@ -2413,7 +2413,8 @@ void
fil_space_crypt_close_tablespace(
const fil_space_t* space)
{
if (!srv_encrypt_tables || !space->crypt_data) {
if (!srv_encrypt_tables || !space->crypt_data
|| srv_n_fil_crypt_threads == 0) {
return;
}
......
......@@ -2413,7 +2413,8 @@ void
fil_space_crypt_close_tablespace(
const fil_space_t* space)
{
if (!srv_encrypt_tables || !space->crypt_data) {
if (!srv_encrypt_tables || !space->crypt_data
|| srv_n_fil_crypt_threads == 0) {
return;
}
......
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