MySQL 9.1.0
Source Code Documentation
|
This iterates over RW trx_sys lists only. More...
Public Member Functions | |
TrxListIterator () | |
const trx_t * | current () |
Get the current transaction whose ordinality is m_index. More... | |
void | next () |
Advance the transaction current ordinal value and reset the transaction lock ordinal value. More... | |
TrxLockIterator & | lock_iter () |
Private Member Functions | |
const trx_t * | reposition () const |
Reposition the "cursor" on the current transaction. More... | |
Private Attributes | |
ulint | m_index |
Ordinal value of the transaction in the current transaction list. More... | |
decltype(trx_sys->rw_trx_list) * | m_trx_list |
Current transaction list. More... | |
TrxLockIterator | m_lock_iter |
For iterating over a transaction's locks. More... | |
This iterates over RW trx_sys lists only.
We need to keep track where the iterator was up to and we do that using an ordinal value.
|
inline |
|
inline |
Get the current transaction whose ordinality is m_index.
|
inline |
|
inline |
Advance the transaction current ordinal value and reset the transaction lock ordinal value.
|
inlineprivate |
Reposition the "cursor" on the current transaction.
If it is the first time then the "cursor" will be positioned on the first transaction.
|
private |
Ordinal value of the transaction in the current transaction list.
|
private |
For iterating over a transaction's locks.
|
private |
Current transaction list.