Commit eb38b1f7 authored by Marko Mäkelä's avatar Marko Mäkelä

Revert "MDEV-23776 Test encryption.create_or_replace fails with a warning"

This reverts commit e33f7b6f.
The change seems to have introduced intermittent failures of the test
encryption.innodb-bad-key-change on many platforms.

The failure that we were trying to address was not reproduced on 10.2.
It could be related to commit a7dd7c89
(MDEV-23651) or de942c9f (MDEV-15983)
or other changes that reduced contention on fil_system.mutex in 10.3.

The fix that we are hereby reverting from 10.2 seems to work fine
on 10.3 and 10.4.
parent e05650e6
...@@ -1483,11 +1483,6 @@ static bool fil_crypt_find_space_to_rotate( ...@@ -1483,11 +1483,6 @@ static bool fil_crypt_find_space_to_rotate(
{ {
/* we need iops to start rotating */ /* we need iops to start rotating */
while (!state->should_shutdown() && !fil_crypt_alloc_iops(state)) { while (!state->should_shutdown() && !fil_crypt_alloc_iops(state)) {
if (state->space && state->space->is_stopping()) {
fil_space_release(state->space);
state->space = NULL;
}
os_event_reset(fil_crypt_threads_event); os_event_reset(fil_crypt_threads_event);
os_event_wait_time(fil_crypt_threads_event, 100000); os_event_wait_time(fil_crypt_threads_event, 100000);
} }
...@@ -2511,7 +2506,6 @@ fil_space_crypt_close_tablespace( ...@@ -2511,7 +2506,6 @@ fil_space_crypt_close_tablespace(
/* wakeup throttle (all) sleepers */ /* wakeup throttle (all) sleepers */
os_event_set(fil_crypt_throttle_sleep_event); os_event_set(fil_crypt_throttle_sleep_event);
os_event_set(fil_crypt_threads_event);
os_thread_sleep(20000); os_thread_sleep(20000);
dict_mutex_enter_for_mysql(); dict_mutex_enter_for_mysql();
......
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