mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Revert "MDEV-23776 Test encryption.create_or_replace fails with a warning"
This reverts commite33f7b6faa. 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 commita7dd7c8993(MDEV-23651) orde942c9f61(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.
This commit is contained in:
@@ -1483,11 +1483,6 @@ static bool fil_crypt_find_space_to_rotate(
|
||||
{
|
||||
/* we need iops to start rotating */
|
||||
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_wait_time(fil_crypt_threads_event, 100000);
|
||||
}
|
||||
@@ -2511,7 +2506,6 @@ fil_space_crypt_close_tablespace(
|
||||
|
||||
/* wakeup throttle (all) sleepers */
|
||||
os_event_set(fil_crypt_throttle_sleep_event);
|
||||
os_event_set(fil_crypt_threads_event);
|
||||
|
||||
os_thread_sleep(20000);
|
||||
dict_mutex_enter_for_mysql();
|
||||
|
||||
Reference in New Issue
Block a user