MySQL 8.0.39
Source Code Documentation
|
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_t * | rec |
last inserted/selected record. More... | |
buf_block_t * | block |
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... | |
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.
|
inline |
Constructor.
|
inline |
buf_block_t* last_ops_cur_t::block |
block where record reside.
bool last_ops_cur_t::disable_caching |
disable caching.
(disabled when table involves blob/text.)
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_t last_ops_cur_t::mtr |
active mtr that will be re-used for next insert/select.
rec_t* last_ops_cur_t::rec |
last inserted/selected record.