MySQL 8.0.39
Source Code Documentation
last_ops_cur_t Class Reference

Cache position of last inserted or selected record by caching record and holding reference to the block where record resides. More...

#include <dict0mem.h>

Public Member Functions

 last_ops_cur_t ()
 Constructor. More...
 
void release ()
 

Public Attributes

rec_trec
 last inserted/selected record. More...
 
buf_block_tblock
 block where record reside. More...
 
mtr_t mtr
 active mtr that will be re-used for next insert/select. More...
 
bool disable_caching
 disable caching. More...
 
bool invalid
 If index structure is undergoing structural change viz. More...
 

Detailed Description

Cache position of last inserted or selected record by caching record and holding reference to the block where record resides.

Note: We don't commit mtr and hold it beyond a transaction lifetime as this is a special case (intrinsic table) that are not shared across connection.

Constructor & Destructor Documentation

◆ last_ops_cur_t()

last_ops_cur_t::last_ops_cur_t ( )
inline

Constructor.

Member Function Documentation

◆ release()

void last_ops_cur_t::release ( )
inline

Member Data Documentation

◆ block

buf_block_t* last_ops_cur_t::block

block where record reside.

◆ disable_caching

bool last_ops_cur_t::disable_caching

disable caching.

(disabled when table involves blob/text.)

◆ invalid

bool last_ops_cur_t::invalid

If index structure is undergoing structural change viz.

split then invalidate the cached position as it would be no more remain valid. Will be re-cached on post-split insert.

◆ mtr

mtr_t last_ops_cur_t::mtr

active mtr that will be re-used for next insert/select.

◆ rec

rec_t* last_ops_cur_t::rec

last inserted/selected record.


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