![]() |
MySQL 8.0.43
Source Code Documentation
|
Listener for transaction life cycle events. More...
#include <group_transaction_observation_manager.h>
Public Types | |
| enum | enum_transaction_origin { GROUP_APPLIER_TRANSACTION = 0 , GROUP_RECOVERY_TRANSACTION = 1 , GROUP_LOCAL_TRANSACTION = 2 } |
| Enum for transaction origins. More... | |
Public Member Functions | |
| virtual | ~Group_transaction_listener () |
| Class destructor. More... | |
| virtual int | before_transaction_begin (my_thread_id thread_id, ulong gr_consistency_level, ulong hold_timeout, enum_rpl_channel_type channel_type)=0 |
| Executed before a transaction begins. More... | |
| virtual int | before_commit (my_thread_id thread_id, enum_transaction_origin origin)=0 |
| Executed before commit. More... | |
| virtual int | before_rollback (my_thread_id thread_id, enum_transaction_origin origin)=0 |
| Executed before rollback. More... | |
| virtual int | after_commit (my_thread_id thread_id, rpl_sidno sidno, rpl_gno gno)=0 |
| Executed after commit. More... | |
| virtual int | after_rollback (my_thread_id thread_id)=0 |
| Executed after rollback. More... | |
Listener for transaction life cycle events.
|
virtualdefault |
Class destructor.
|
pure virtual |
Executed after commit.
| thread_id | the transaction thread id |
| sidno | the transaction sidno |
| gno | the transaction gno |
Implemented in Transaction_consistency_manager, and Server_ongoing_transactions_handler.
|
pure virtual |
Executed after rollback.
| thread_id | the transaction thread id |
Implemented in Transaction_consistency_manager, and Server_ongoing_transactions_handler.
|
pure virtual |
Executed before commit.
| thread_id | the transaction thread id |
| origin | who applied it |
Implemented in Transaction_consistency_manager, and Server_ongoing_transactions_handler.
|
pure virtual |
Executed before rollback.
| thread_id | the transaction thread id |
| origin | who applied it |
Implemented in Transaction_consistency_manager, and Server_ongoing_transactions_handler.
|
pure virtual |
Executed before a transaction begins.
| thread_id | the transaction thread id |
| gr_consistency_level | the current consistency level for this session |
| hold_timeout | the max time to execute an action on this transaction |
| channel_type | type channel that receives transaction |
Implemented in Server_ongoing_transactions_handler, and Transaction_consistency_manager.