Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions storage/innobase/lock/lock0lock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2914,11 +2914,15 @@ lock_move_reorganize_page(
UT_LIST_INIT(old_locks, &lock_t::trx_locks);

const page_id_t id{block->page.id()};
/* Fast path for the early exit case, available only with lock elision. */
#if !defined NO_ELISION && !defined SUX_LOCK_GENERIC
if (have_transactional_memory)
{
Comment thread
iMineLink marked this conversation as resolved.
TMLockGuard g{lock_sys.rec_hash, id};
if (!lock_sys_t::get_first(g.cell(), id))
return;
}
#endif

/* All record locks affected by a page reorganize belong to this
single page and therefore live in a single lock_sys.rec_hash cell.
Expand Down