MySQL 9.1.0
Source Code Documentation
observer_trans.cc File Reference

Macros

#define BUFFER_READ_PKE   8
 

Functions

int add_write_set (Transaction_context_log_event *tcle, std::vector< uint64 > *set, const THD *thd)
 
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,
std::vector< uint64 > *  set,
const THD thd 
)

◆ 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:617
int group_replication_trans_after_rollback(Trans_param *param)
Definition: observer_trans.cc:647
int group_replication_trans_before_commit(Trans_param *param)
Definition: observer_trans.cc:162
int group_replication_trans_begin(Trans_param *param, int &out)
Definition: observer_trans.cc:673
int group_replication_trans_before_dml(Trans_param *param, int &out)
Definition: observer_trans.cc:101
int group_replication_trans_before_rollback(Trans_param *)
Definition: observer_trans.cc:612
struct Trans_observer Trans_observer
Observes and extends transaction execution.