Skip to content

Commit

Permalink
MDEV-32788: Debug build failure with SUX_LOCK_GENERIC
Browse files Browse the repository at this point in the history
Fixes up commit 2027c48
  • Loading branch information
dr-m committed Nov 13, 2023
1 parent 04477bd commit dec4d0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/innobase/trx/trx0purge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,9 @@ void purge_sys_t::rseg_get_next_history_log()
{
fil_addr_t prev_log_addr;

#ifndef SUX_LOCK_GENERIC
ut_ad(rseg->latch.is_write_locked());
#endif
ut_a(rseg->last_page_no != FIL_NULL);

tail.trx_no= rseg->last_trx_no() + 1;
Expand Down Expand Up @@ -968,7 +970,9 @@ inline trx_purge_rec_t purge_sys_t::get_next_rec(roll_ptr_t roll_ptr)
{
ut_ad(next_stored);
ut_ad(tail.trx_no < low_limit_no());
#ifndef SUX_LOCK_GENERIC
ut_ad(rseg->latch.is_write_locked());
#endif

if (!offset)
{
Expand Down

0 comments on commit dec4d0b

Please sign in to comment.