MDEV-24913 Assertion !recv_no_log_write in log_write_up_to()

- The commit 5fd3c747(MDEV-24709)
resets the recv_no_ibuf_operations in
recv_recovery_from_checkpoint_start(), but InnoDB fails to reset
the variable recv_no_log_write() during that time and that leads
to the assert failure.
parent 3c021485
......@@ -2416,8 +2416,6 @@ void recv_apply_hashed_log_recs(bool last_batch)
recv_no_ibuf_operations
= !last_batch || is_mariabackup_restore_or_export();
ut_d(recv_no_log_write = recv_no_ibuf_operations);
if (ulint n = recv_sys->n_addrs) {
const char* msg = last_batch
? "Starting final batch to recover "
......@@ -4002,6 +4000,7 @@ recv_recovery_from_checkpoint_start(lsn_t flush_lsn)
recv_sys->apply_log_recs = TRUE;
recv_no_ibuf_operations = is_mariabackup_restore_or_export();
ut_d(recv_no_log_write = recv_no_ibuf_operations);
mutex_exit(&recv_sys->mutex);
......
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