MySQL 5.6.14 Source Code Document
|
#include <replication.h>
Public Attributes | |
uint32 | len |
int(* | after_commit )(Trans_param *param) |
int(* | after_rollback )(Trans_param *param) |
Observes and extends transaction execution
Definition at line 56 of file replication.h.
int(* Trans_observer::after_commit)(Trans_param *param) |
This callback is called after transaction commit
This callback is called right after commit to storage engines for transactional tables.
For non-transactional tables, this is called at the end of the statement, before sending statement status, if the statement succeeded.
param | The parameter for transaction observers |
0 | Sucess |
1 | Failure |
Definition at line 76 of file replication.h.
int(* Trans_observer::after_rollback)(Trans_param *param) |
This callback is called after transaction rollback
This callback is called right after rollback to storage engines for transactional tables.
For non-transactional tables, this is called at the end of the statement, before sending statement status, if the statement failed.
param | The parameter for transaction observers |
0 | Sucess |
1 | Failure |
Definition at line 95 of file replication.h.