MySQL 8.0.39
Source Code Documentation
RecID Struct Reference

Record lock ID. More...

#include <lock0priv.h>

Public Member Functions

 RecID (const lock_t *lock, ulint heap_no)
 Constructor. More...
 
 RecID (page_id_t page_id, uint32_t heap_no)
 Constructor. More...
 
 RecID (const buf_block_t *block, ulint heap_no)
 Constructor. More...
 
uint64_t hash_value () const
 
bool is_supremum () const
 
bool matches (const lock_t *lock) const
 
const page_id_tget_page_id () const
 

Public Attributes

page_id_t m_page_id
 Tablespace ID and page number within space
More...
 
uint32_t m_heap_no
 Heap number within the page. More...
 
uint64_t m_hash_value
 Hash generated from record's location which will be used to get lock queue for this record. More...
 

Detailed Description

Record lock ID.

Constructor & Destructor Documentation

◆ RecID() [1/3]

RecID::RecID ( const lock_t lock,
ulint  heap_no 
)
inline

Constructor.

Parameters
[in]lockRecord lock
[in]heap_noHeap number in the page

◆ RecID() [2/3]

RecID::RecID ( page_id_t  page_id,
uint32_t  heap_no 
)
inline

Constructor.

Parameters
[in]page_idTablespace ID and page number within space
[in]heap_noHeap number in the page

◆ RecID() [3/3]

RecID::RecID ( const buf_block_t block,
ulint  heap_no 
)
inline

Constructor.

Parameters
[in]blockBlock in a tablespace
[in]heap_noHeap number in the block

Member Function Documentation

◆ get_page_id()

const page_id_t & RecID::get_page_id ( ) const
inline

◆ hash_value()

uint64_t RecID::hash_value ( ) const
inline
Returns
the hashed value of {space, page_no}

◆ is_supremum()

bool RecID::is_supremum ( ) const
inline
Returns
true if it's the supremum record

◆ matches()

bool RecID::matches ( const lock_t lock) const
inline

Member Data Documentation

◆ m_hash_value

uint64_t RecID::m_hash_value

Hash generated from record's location which will be used to get lock queue for this record.

◆ m_heap_no

uint32_t RecID::m_heap_no

Heap number within the page.

◆ m_page_id

page_id_t RecID::m_page_id

Tablespace ID and page number within space


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