mirror of
https://github.com/MariaDB/server.git
synced 2025-12-01 17:39:21 +03:00
Fix the startup with innodb_force_recovery=5
At innodb_force_recovery=5 or bigger, trx_lists_init_at_db_start() no longer initialises the purge_sys. Adjust an assertion accordingly.
This commit is contained in:
@@ -2583,7 +2583,8 @@ files_checked:
|
||||
srv_start_state |= SRV_START_STATE_LOCK_SYS
|
||||
| SRV_START_STATE_MONITOR;
|
||||
|
||||
ut_a(trx_purge_state() == PURGE_STATE_INIT);
|
||||
ut_ad(srv_force_recovery >= SRV_FORCE_NO_UNDO_LOG_SCAN
|
||||
|| trx_purge_state() == PURGE_STATE_INIT);
|
||||
|
||||
if (srv_force_recovery < SRV_FORCE_NO_BACKGROUND) {
|
||||
srv_undo_sources = true;
|
||||
|
||||
Reference in New Issue
Block a user