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.
This commit is contained in:
Thirunarayanan Balathandayuthapani 2019-01-16 23:02:39 +05:30
parent 69328c31ed
commit 038785e1f8
2 changed files with 4 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}