MySQL 8.0.37
Source Code Documentation
|
State of a given scan. More...
Public Member Functions | |
Innodb_trx_scan_state () | |
~Innodb_trx_scan_state ()=default | |
scan_pass | get_pass () |
void | prepare_next_scan () |
Prepare the next scan. More... | |
bool | trx_id_in_range (trx_id_t trx_id) |
Check if a transaction belongs to the current range. More... | |
Public Attributes | |
const trx_id_t | SCAN_RANGE = 256 |
Private Attributes | |
scan_pass | m_scan_pass |
Current scan pass. More... | |
trx_id_t | m_start_trx_id_range |
Start of the current range. More... | |
trx_id_t | m_end_trx_id_range |
End of the current range. More... | |
trx_id_t | m_next_trx_id_range |
Next range. More... | |
State of a given scan.
Scans are restartable, and done in multiple calls. Overall, the code scans separately:
|
inline |
|
default |
|
inline |
|
inline |
Prepare the next scan.
When there are TRX after the current range, compute the next range. When there are no more TRX for this pass, advance to the next pass.
|
inline |
Check if a transaction belongs to the current range.
As a side effect, compute the next range.
[in] | trx_id | Transaction id to evaluate |
|
private |
End of the current range.
|
private |
Next range.
|
private |
Current scan pass.
|
private |
Start of the current range.
const trx_id_t Innodb_trx_scan_state::SCAN_RANGE = 256 |