MySQL 8.0.40
Source Code Documentation
THD::Attachable_trx Class Reference

Class representing read-only attachable transaction, encapsulates knowledge how to backup state of current transaction, start read-only attachable transaction in SE, finalize it and then restore state of original transaction back. More...

Inheritance diagram for THD::Attachable_trx:
[legend]

Public Member Functions

 Attachable_trx (THD *thd, Attachable_trx *prev_trx)
 
virtual ~Attachable_trx ()
 
Attachable_trxget_prev_attachable_trx () const
 
virtual bool is_read_only () const
 

Protected Attributes

THDm_thd
 THD instance. More...
 
enum_reset_lex m_reset_lex
 
Attachable_trxm_prev_attachable_trx
 Attachable_trx which was active for the THD before when this transaction was started (NULL in most cases). More...
 
Transaction_state m_trx_state
 Transaction state data. More...
 

Private Member Functions

 Attachable_trx (const Attachable_trx &)
 
Attachable_trxoperator= (const Attachable_trx &)
 

Detailed Description

Class representing read-only attachable transaction, encapsulates knowledge how to backup state of current transaction, start read-only attachable transaction in SE, finalize it and then restore state of original transaction back.

Also serves as a base class for read-write attachable transaction implementation.

Constructor & Destructor Documentation

◆ Attachable_trx() [1/2]

THD::Attachable_trx::Attachable_trx ( THD thd,
Attachable_trx prev_trx 
)

◆ ~Attachable_trx()

THD::Attachable_trx::~Attachable_trx ( )
virtual

◆ Attachable_trx() [2/2]

THD::Attachable_trx::Attachable_trx ( const Attachable_trx )
private

Member Function Documentation

◆ get_prev_attachable_trx()

Attachable_trx * THD::Attachable_trx::get_prev_attachable_trx ( ) const
inline

◆ is_read_only()

virtual bool THD::Attachable_trx::is_read_only ( ) const
inlinevirtual

Reimplemented in THD::Attachable_trx_rw.

◆ operator=()

Attachable_trx & THD::Attachable_trx::operator= ( const Attachable_trx )
private

Member Data Documentation

◆ m_prev_attachable_trx

Attachable_trx* THD::Attachable_trx::m_prev_attachable_trx
protected

Attachable_trx which was active for the THD before when this transaction was started (NULL in most cases).

◆ m_reset_lex

enum_reset_lex THD::Attachable_trx::m_reset_lex
protected

◆ m_thd

THD* THD::Attachable_trx::m_thd
protected

THD instance.

◆ m_trx_state

Transaction_state THD::Attachable_trx::m_trx_state
protected

Transaction state data.


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