Skip to content
Permalink
Browse files
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).
  • Loading branch information
dr-m committed Jun 2, 2022
1 parent 5909e0e commit 22f935d
Showing 1 changed file with 2 additions and 0 deletions.
@@ -1263,4 +1263,6 @@ void mtr_t::modify(const buf_block_t &block)
}
iteration.functor.found->type= static_cast<mtr_memo_type_t>
(iteration.functor.found->type | MTR_MEMO_MODIFY);
if (is_block_dirtied(&block))
m_made_dirty= true;
}

0 comments on commit 22f935d

Please sign in to comment.