MySQL 8.3.0
Source Code Documentation
TrxLockIterator Class Reference

Iterate over a transaction's locks. More...

Public Member Functions

 TrxLockIterator ()
 
const lock_tcurrent (const trx_t *trx) const
 Get the m_index(th) lock of a transaction. More...
 
void rewind ()
 Set the ordinal value to 0. More...
 
ulint next ()
 Increment the ordinal value. More...
 

Private Attributes

ulint m_index
 Current iterator position. More...
 

Detailed Description

Iterate over a transaction's locks.

Keeping track of the iterator using an ordinal value.

Constructor & Destructor Documentation

◆ TrxLockIterator()

TrxLockIterator::TrxLockIterator ( )
inline

Member Function Documentation

◆ current()

const lock_t * TrxLockIterator::current ( const trx_t trx) const
inline

Get the m_index(th) lock of a transaction.

Returns
current lock or 0

◆ next()

ulint TrxLockIterator::next ( void  )
inline

Increment the ordinal value.

Returns
the current index value

◆ rewind()

void TrxLockIterator::rewind ( void  )
inline

Set the ordinal value to 0.

Member Data Documentation

◆ m_index

ulint TrxLockIterator::m_index
private

Current iterator position.


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