MySQL 8.0.39
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... | |
bool | is_generated_gtid () |
Was GTID generated externally? More... | |
int | get_sidno () |
Get transaction sidno. More... | |
rpl_gno | get_gno () |
Get transaction gno. 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 | ( | ) |
Get transaction gno.
rpl_sidno Rpl_transaction_ctx::get_sidno | ( | ) |
Get transaction sidno.
bool Rpl_transaction_ctx::is_generated_gtid | ( | ) |
Was GTID generated externally?
true | GTID was generated. |
false | GTID was not generated. |
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 | ) |
|
private |