MySQL 8.0.39
Source Code Documentation
observer_trans.cc File Reference

Macros

#define BUFFER_READ_PKE   8
 

Functions

void cleanup_transaction_write_set (Transaction_write_set *transaction_write_set)
 
int add_write_set (Transaction_context_log_event *tcle, Transaction_write_set *set)
 
int group_replication_trans_before_dml (Trans_param *param, int &out)
 
int group_replication_trans_before_commit (Trans_param *param)
 
int group_replication_trans_before_rollback (Trans_param *)
 
int group_replication_trans_after_commit (Trans_param *param)
 
int group_replication_trans_after_rollback (Trans_param *param)
 
int group_replication_trans_begin (Trans_param *param, int &out)
 

Variables

Trans_observer trans_observer
 

Macro Definition Documentation

◆ BUFFER_READ_PKE

#define BUFFER_READ_PKE   8

Function Documentation

◆ add_write_set()

int add_write_set ( Transaction_context_log_event tcle,
Transaction_write_set set 
)

◆ cleanup_transaction_write_set()

void cleanup_transaction_write_set ( Transaction_write_set transaction_write_set)

◆ group_replication_trans_after_commit()

int group_replication_trans_after_commit ( Trans_param param)

We don't use locks here as observers are unregistered before the classes used here disappear. Unregistration also avoids usage vs removal scenarios.

◆ group_replication_trans_after_rollback()

int group_replication_trans_after_rollback ( Trans_param param)

◆ group_replication_trans_before_commit()

int group_replication_trans_before_commit ( Trans_param param)

◆ group_replication_trans_before_dml()

int group_replication_trans_before_dml ( Trans_param param,
int &  out 
)

◆ group_replication_trans_before_rollback()

int group_replication_trans_before_rollback ( Trans_param param)

◆ group_replication_trans_begin()

int group_replication_trans_begin ( Trans_param param,
int &  out 
)

Variable Documentation

◆ trans_observer

Trans_observer trans_observer
Initial value:
= {
sizeof(Trans_observer),
}
int group_replication_trans_after_commit(Trans_param *param)
Definition: observer_trans.cc:612
int group_replication_trans_after_rollback(Trans_param *param)
Definition: observer_trans.cc:642
int group_replication_trans_before_commit(Trans_param *param)
Definition: observer_trans.cc:169
int group_replication_trans_begin(Trans_param *param, int &out)
Definition: observer_trans.cc:668
int group_replication_trans_before_dml(Trans_param *param, int &out)
Definition: observer_trans.cc:100
int group_replication_trans_before_rollback(Trans_param *)
Definition: observer_trans.cc:607
struct Trans_observer Trans_observer
Observes and extends transaction execution.