mirror of
https://github.com/MariaDB/server.git
synced 2026-05-11 17:40:11 +02:00
Merge branch '10.1' into 10.2
Revert commit db0917f68f, because the fix for MDEV-12696
is coming from 5.5 and 10.1 in this merge.
This commit is contained in:
commit
c91ecf9e9b
84 changed files with 1292 additions and 376 deletions
|
|
@ -1782,11 +1782,6 @@ fil_crypt_rotate_page(
|
|||
kv, key_state->key_version,
|
||||
key_state->rotate_key_age)) {
|
||||
|
||||
/* page can be "fresh" i.e never written in case
|
||||
* kv == 0 or it should have a key version at least
|
||||
* as big as the space minimum key version*/
|
||||
ut_a(kv == 0 || kv >= crypt_data->min_key_version);
|
||||
|
||||
modified = true;
|
||||
|
||||
/* force rotation by dummy updating page */
|
||||
|
|
@ -1798,9 +1793,6 @@ fil_crypt_rotate_page(
|
|||
state->crypt_stat.pages_modified++;
|
||||
} else {
|
||||
if (crypt_data->is_encrypted()) {
|
||||
ut_a(kv >= crypt_data->min_key_version ||
|
||||
(kv == 0 && key_state->key_version == 0));
|
||||
|
||||
if (kv < state->min_key_version_found) {
|
||||
state->min_key_version_found = kv;
|
||||
}
|
||||
|
|
@ -2075,6 +2067,11 @@ fil_crypt_complete_rotate_space(
|
|||
crypt_data->rotate_state.flushing = false;
|
||||
mutex_exit(&crypt_data->mutex);
|
||||
}
|
||||
} else {
|
||||
mutex_enter(&crypt_data->mutex);
|
||||
ut_a(crypt_data->rotate_state.active_threads > 0);
|
||||
crypt_data->rotate_state.active_threads--;
|
||||
mutex_exit(&crypt_data->mutex);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue