MySQL 9.1.0
Source Code Documentation
TrxUndoRsegs Class Reference

Rollback segments from a given transaction with trx-no scheduled for purge. More...

#include <trx0types.h>

Public Member Functions

 TrxUndoRsegs (trx_id_t trx_no)
 
 TrxUndoRsegs ()
 Default constructor. More...
 
void set_trx_no (trx_id_t trx_no)
 
trx_id_t get_trx_no () const
 Get transaction number. More...
 
void insert (trx_rseg_t *rseg)
 Add rollback segment. More...
 
size_t size () const
 Number of registered rsegs. More...
 
Rsegs_array< 2 >::iterator begin ()
 
Rsegs_array< 2 >::iterator end ()
 
void insert (const TrxUndoRsegs &append_from)
 Append rollback segments from referred instance to current instance. More...
 
bool operator() (const TrxUndoRsegs &lhs, const TrxUndoRsegs &rhs)
 Compare two TrxUndoRsegs based on trx_no. More...
 

Private Attributes

trx_id_t m_trx_no
 Compiler defined copy-constructor/assignment operator should be fine given that there is no reference to a memory object outside scope of class object. More...
 
size_t m_rsegs_n {}
 
Rsegs_array< 2 > m_rsegs
 Rollback segments of a transaction, scheduled for purge. More...
 

Detailed Description

Rollback segments from a given transaction with trx-no scheduled for purge.

Constructor & Destructor Documentation

◆ TrxUndoRsegs() [1/2]

TrxUndoRsegs::TrxUndoRsegs ( trx_id_t  trx_no)
inlineexplicit

◆ TrxUndoRsegs() [2/2]

TrxUndoRsegs::TrxUndoRsegs ( )
inline

Default constructor.

Member Function Documentation

◆ begin()

Rsegs_array< 2 >::iterator TrxUndoRsegs::begin ( void  )
inline
Returns
an iterator to the first element

◆ end()

Rsegs_array< 2 >::iterator TrxUndoRsegs::end ( void  )
inline
Returns
an iterator to the end

◆ get_trx_no()

trx_id_t TrxUndoRsegs::get_trx_no ( ) const
inline

Get transaction number.

Returns
trx_id_t - get transaction number.

◆ insert() [1/2]

void TrxUndoRsegs::insert ( const TrxUndoRsegs append_from)
inline

Append rollback segments from referred instance to current instance.

◆ insert() [2/2]

void TrxUndoRsegs::insert ( trx_rseg_t rseg)
inline

Add rollback segment.

Parameters
rsegrollback segment to add.

◆ operator()()

bool TrxUndoRsegs::operator() ( const TrxUndoRsegs lhs,
const TrxUndoRsegs rhs 
)
inline

Compare two TrxUndoRsegs based on trx_no.

Parameters
lhsfirst element to compare
rhssecond element to compare
Returns
true if elem1 > elem2 else false.

◆ set_trx_no()

void TrxUndoRsegs::set_trx_no ( trx_id_t  trx_no)
inline

◆ size()

size_t TrxUndoRsegs::size ( ) const
inline

Number of registered rsegs.

Returns
size of rseg list.

Member Data Documentation

◆ m_rsegs

Rsegs_array<2> TrxUndoRsegs::m_rsegs
private

Rollback segments of a transaction, scheduled for purge.

◆ m_rsegs_n

size_t TrxUndoRsegs::m_rsegs_n {}
private

◆ m_trx_no

trx_id_t TrxUndoRsegs::m_trx_no
private

Compiler defined copy-constructor/assignment operator should be fine given that there is no reference to a memory object outside scope of class object.

The rollback segments transaction number.


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