My Project
Public Attributes
Trans_observer Struct Reference

#include <replication.h>

List of all members.

Public Attributes

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

Detailed Description

Observes and extends transaction execution


Member Data Documentation

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

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

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines