summaryrefslogtreecommitdiff
path: root/storage/innobase/srv/srv0start.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2023-03-16 15:48:08 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2023-03-16 15:48:08 +0200
commit85cbfaefee694cdd490b357444f24ff16b8042e8 (patch)
tree11f7a96caf686598c6155cc5e2a098617cf077cb /storage/innobase/srv/srv0start.cc
parentf169dfb41adcb637732507ed56d3038003170a15 (diff)
parent1495f057c8a3aa5783de0993f6f95aae3e352f7a (diff)
downloadmariadb-git-85cbfaefee694cdd490b357444f24ff16b8042e8.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'storage/innobase/srv/srv0start.cc')
-rw-r--r--storage/innobase/srv/srv0start.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/storage/innobase/srv/srv0start.cc b/storage/innobase/srv/srv0start.cc
index 61f0a269d58..b0adc15300c 100644
--- a/storage/innobase/srv/srv0start.cc
+++ b/storage/innobase/srv/srv0start.cc
@@ -556,7 +556,8 @@ err_exit:
fil_set_max_space_id_if_bigger(space_id);
fil_space_t *space= fil_space_t::create(space_id, fsp_flags,
- FIL_TYPE_TABLESPACE, NULL);
+ FIL_TYPE_TABLESPACE, nullptr,
+ FIL_ENCRYPTION_DEFAULT, true);
ut_a(fil_validate());
ut_a(space);
@@ -905,9 +906,7 @@ static lsn_t srv_prepare_to_delete_redo_log_file(bool old_exists)
{
DBUG_ENTER("srv_prepare_to_delete_redo_log_file");
- /* Disable checkpoints in the page cleaner. */
- ut_ad(!recv_sys.recovery_on);
- recv_sys.recovery_on= true;
+ ut_ad(recv_sys.recovery_on);
/* Clean the buffer pool. */
buf_flush_sync();
@@ -1589,10 +1588,10 @@ file_checked:
}
}
- recv_sys.debug_free();
-
if (srv_operation == SRV_OPERATION_RESTORE
|| srv_operation == SRV_OPERATION_RESTORE_EXPORT) {
+ buf_flush_sync();
+ recv_sys.debug_free();
/* After applying the redo log from
SRV_OPERATION_BACKUP, flush the changes
to the data files and truncate or delete the log.
@@ -1684,6 +1683,8 @@ file_checked:
return(srv_init_abort(err));
}
}
+
+ recv_sys.debug_free();
}
ut_ad(err == DB_SUCCESS);