MySQL 8.0.39
Source Code Documentation
locksys::Trx_locks_cache Class Reference

An object which can be passed to consecutive calls to rec_lock_has_to_wait(trx, mode, lock, is_supremum, trx_locks_cache) for the same trx and heap_no (which is implicitly the bit common to all lock objects passed) which can be used by this function to cache some partial results. More...

#include <lock0lock.h>

Public Member Functions

bool has_granted_blocker (const trx_t *trx, const lock_t *waiting_lock)
 

Private Attributes

bool m_computed {false}
 
bool m_has_s_lock_on_record {false}
 
const trx_tm_cached_trx {}
 
page_id_t m_cached_page_id {0, 0}
 
size_t m_cached_heap_no {}
 

Detailed Description

An object which can be passed to consecutive calls to rec_lock_has_to_wait(trx, mode, lock, is_supremum, trx_locks_cache) for the same trx and heap_no (which is implicitly the bit common to all lock objects passed) which can be used by this function to cache some partial results.

Member Function Documentation

◆ has_granted_blocker()

bool locksys::Trx_locks_cache::has_granted_blocker ( const trx_t trx,
const lock_t waiting_lock 
)

Member Data Documentation

◆ m_cached_heap_no

size_t locksys::Trx_locks_cache::m_cached_heap_no {}
private

◆ m_cached_page_id

page_id_t locksys::Trx_locks_cache::m_cached_page_id {0, 0}
private

◆ m_cached_trx

const trx_t* locksys::Trx_locks_cache::m_cached_trx {}
private

◆ m_computed

bool locksys::Trx_locks_cache::m_computed {false}
private

◆ m_has_s_lock_on_record

bool locksys::Trx_locks_cache::m_has_s_lock_on_record {false}
private

The documentation for this class was generated from the following files: