MySQL 9.1.0
Source Code Documentation
|
Dependency tracker is a container singleton that dispatches between the three methods associated with the binlog transaction dependency tracking algorithm. More...
#include <rpl_trx_tracking.h>
Public Member Functions | |
Transaction_dependency_tracker () | |
void | get_dependency (THD *thd, bool parallelization_barrier, int64 &sequence_number, int64 &commit_parent) |
Get the dependencies in a transaction, the main entry point for the dependency tracking work. More... | |
void | update_max_committed (THD *thd) |
The method is to be executed right before committing time. More... | |
int64 | get_max_committed_timestamp () |
int64 | step () |
void | rotate () |
Writeset_trx_dependency_tracker * | get_writeset () |
Private Attributes | |
Writeset_trx_dependency_tracker | m_writeset |
Commit_order_trx_dependency_tracker | m_commit_order |
Dependency tracker is a container singleton that dispatches between the three methods associated with the binlog transaction dependency tracking algorithm.
There is a singleton instance of each of these classes.
|
inline |
void Transaction_dependency_tracker::get_dependency | ( | THD * | thd, |
bool | parallelization_barrier, | ||
int64 & | sequence_number, | ||
int64 & | commit_parent | ||
) |
Get the dependencies in a transaction, the main entry point for the dependency tracking work.
int64 Transaction_dependency_tracker::get_max_committed_timestamp | ( | ) |
|
inline |
void Transaction_dependency_tracker::rotate | ( | ) |
int64 Transaction_dependency_tracker::step | ( | ) |
void Transaction_dependency_tracker::update_max_committed | ( | THD * | thd | ) |
The method is to be executed right before committing time.
It must be invoked even if the transaction does not commit to engine being merely logged into the binary log. max_committed_transaction is updated with a greater timestamp value. As a side effect, the transaction context's sequence_number is reset.
thd | a pointer to THD instance |
|
private |
|
private |