MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Trans_observer Struct Reference

#include <replication.h>

Public Attributes

uint32 len
int(* after_commit )(Trans_param *param)
int(* after_rollback )(Trans_param *param)

Detailed Description

Observes and extends transaction execution

Definition at line 56 of file replication.h.

Member Data Documentation

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.

Note
The return value is currently ignored by the server.
Parameters
paramThe parameter for transaction observers
Return values
0Sucess
1Failure

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.

Note
The return value is currently ignored by the server.
Parameters
paramThe parameter for transaction observers
Return values
0Sucess
1Failure

Definition at line 95 of file replication.h.


The documentation for this struct was generated from the following file: