Skip to content

Commit

Permalink
MDEV-26626 fixup: Do not advance checkpoint during startup
Browse files Browse the repository at this point in the history
While the redo log is being resized in srv_start(),
we must not write checkpoint information to the old log.

Thanks to Matthias Leich for noticing this.
  • Loading branch information
dr-m committed Sep 24, 2021
1 parent 7d36006 commit 15efb7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/innobase/buf/buf0flu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2271,7 +2271,9 @@ static os_thread_ret_t DECLARE_THREAD(buf_flush_page_cleaner)(void*)

mysql_mutex_unlock(&buf_pool.flush_list_mutex);

if (!recv_recovery_is_on() && srv_operation == SRV_OPERATION_NORMAL)
if (!recv_recovery_is_on() &&
!srv_startup_is_before_trx_rollback_phase &&
srv_operation == SRV_OPERATION_NORMAL)
log_checkpoint();

mysql_mutex_lock(&buf_pool.flush_list_mutex);
Expand Down

0 comments on commit 15efb7e

Please sign in to comment.