MySQL 9.1.0
Source Code Documentation
lock_rec_t Struct Reference

Record lock for a page. More...

#include <lock0priv.h>

Public Member Functions

std::ostream & print (std::ostream &out) const
 Print the record lock into the given output stream. More...
 

Public Attributes

page_id_t page_id
 The id of the page on which records referenced by this lock's bitmap are located. More...
 
uint32_t n_bits
 number of bits in the lock bitmap; Must be divisible by 8. More...
 

Detailed Description

Record lock for a page.

Member Function Documentation

◆ print()

std::ostream & lock_rec_t::print ( std::ostream &  out) const
inline

Print the record lock into the given output stream.

Parameters
[in,out]outthe output stream
Returns
the given output stream.

Member Data Documentation

◆ n_bits

uint32_t lock_rec_t::n_bits

number of bits in the lock bitmap; Must be divisible by 8.

NOTE: the lock bitmap is placed immediately after the lock struct

◆ page_id

page_id_t lock_rec_t::page_id

The id of the page on which records referenced by this lock's bitmap are located.


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