MySQL 8.4.2
Source Code Documentation
|
Server side support to provide a service to plugins to report if a given transaction should continue or be aborted. More...
#include <rpl_transaction_ctx.h>
Public Member Functions | |
Rpl_transaction_ctx () | |
virtual | ~Rpl_transaction_ctx ()=default |
int | set_rpl_transaction_ctx (Transaction_termination_ctx transaction_termination_ctx) |
bool | is_transaction_rollback () |
Get transaction outcome decision. More... | |
int | get_sidno () const |
Get transaction sidno. More... | |
rpl_gno | get_gno () const |
Get transaction gno. More... | |
void | set_sidno (rpl_sidno sidno) |
Sets transaction sidno. More... | |
std::pair< rpl_sidno, rpl_gno > | get_gtid_components () const |
Transaction GTID components accessor. More... | |
void | cleanup () |
Reset transaction context to default values. More... | |
Private Attributes | |
Transaction_termination_ctx | m_transaction_ctx |
Server side support to provide a service to plugins to report if a given transaction should continue or be aborted.
Its value is reset on Transaction_ctx::cleanup(). Its value is set through service service_rpl_transaction_ctx.
Rpl_transaction_ctx::Rpl_transaction_ctx | ( | ) |
|
virtualdefault |
void Rpl_transaction_ctx::cleanup | ( | ) |
Reset transaction context to default values.
rpl_gno Rpl_transaction_ctx::get_gno | ( | ) | const |
Get transaction gno.
Transaction GTID components accessor.
rpl_sidno Rpl_transaction_ctx::get_sidno | ( | ) | const |
Get transaction sidno.
bool Rpl_transaction_ctx::is_transaction_rollback | ( | ) |
Get transaction outcome decision.
When both sidno and gno are equal or greater than zero, transaction should continue. By default sidno and gno are 0, transaction will continue.
true | Transaction should abort |
false | Transaction should continue |
int Rpl_transaction_ctx::set_rpl_transaction_ctx | ( | Transaction_termination_ctx | transaction_termination_ctx | ) |
void Rpl_transaction_ctx::set_sidno | ( | rpl_sidno | sidno | ) |
Sets transaction sidno.
sidno | sidno value |
|
private |