Skip to content

Commit 22f935d

Browse files
committed
MDEV-28731 Race condition on log checkpoint
mtr_t::modify(): Set the m_made_dirty flag if needed, so that buf_pool_t::insert_into_flush_list() will be invoked while holding log_sys.flush_order_mutex. This is something that was should have been part of commit b212f1d (MDEV-22107).
1 parent 5909e0e commit 22f935d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/innobase/mtr/mtr0mtr.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,4 +1263,6 @@ void mtr_t::modify(const buf_block_t &block)
12631263
}
12641264
iteration.functor.found->type= static_cast<mtr_memo_type_t>
12651265
(iteration.functor.found->type | MTR_MEMO_MODIFY);
1266+
if (is_block_dirtied(&block))
1267+
m_made_dirty= true;
12661268
}

0 commit comments

Comments
 (0)