Merge 10.1 into 10.2

This commit is contained in:
Marko Mäkelä 2017-08-31 11:14:28 +03:00
commit 2000a9009b
8 changed files with 24 additions and 36 deletions

View file

@ -2083,7 +2083,8 @@ fil_crypt_complete_rotate_space(
mutex_exit(&crypt_data->mutex);
/* all threads must call btr_scrub_complete_space wo/ mutex held */
if (btr_scrub_complete_space(&state->scrub_data) == true) {
if (state->scrub_data.scrubbing) {
btr_scrub_complete_space(&state->scrub_data);
if (should_flush) {
/* only last thread updates last_scrub_completed */
ut_ad(crypt_data);