Commit a8656d58 authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent fb335b48
...@@ -2583,7 +2583,8 @@ innobase_start_or_create_for_mysql() ...@@ -2583,7 +2583,8 @@ innobase_start_or_create_for_mysql()
srv_start_state |= SRV_START_STATE_LOCK_SYS srv_start_state |= SRV_START_STATE_LOCK_SYS
| SRV_START_STATE_MONITOR; | 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) { if (srv_force_recovery < SRV_FORCE_NO_BACKGROUND) {
srv_undo_sources = true; srv_undo_sources = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment