MySQL  8.0.27
Source Code Documentation
Trans_delegate Class Reference

#include <rpl_handler.h>

Inheritance diagram for Trans_delegate:

Public Types

typedef Trans_observer Observer
- Public Types inherited from Delegate
typedef List< Observer_infoObserver_info_list
typedef List_iterator< Observer_infoObserver_info_iterator

Public Member Functions

 Trans_delegate ()
int before_dml (THD *thd, int &result)
int before_commit (THD *thd, bool all, Binlog_cache_storage *trx_cache_log, Binlog_cache_storage *stmt_cache_log, ulonglong cache_log_max_size, bool is_atomic_ddl)
int before_rollback (THD *thd, bool all)
int after_commit (THD *thd, bool all)
int after_rollback (THD *thd, bool all)
int trans_begin (THD *thd, int &result)
- Public Member Functions inherited from Delegate
 Delegate (PSI_rwlock_key key)
 Class constructor. More...
virtual ~Delegate ()
 Class destructor. More...
int add_observer (void *observer, st_plugin_int *plugin)
 Adds an observer to the observer list. More...
int remove_observer (void *observer)
 Removes an observer from the observer list. More...
Observer_info_iterator observer_info_iter ()
 Retrieves an iterator for the observer list. More...
bool is_empty ()
 Returns whether or not there are registered observers. More...
int read_lock ()
 Acquires this Delegate class instance lock in read/shared mode. More...
int write_lock ()
 Acquires this Delegate class instance lock in write/exclusive mode. More...
int unlock ()
 Releases this Delegate class instance lock. More...
bool is_inited ()
 Returns whether or not this instance was initialized. More...
void update_lock_type ()
 Toggles the type of lock between a classical read-write lock and a shared-exclusive spin-lock. More...
void update_plugin_ref_count ()
 Increases the info->plugin usage reference counting if replication_optimize_for_static_plugin_config is being enabled, in order to prevent plugin removal. More...
bool use_rw_lock_type ()
 Returns whether or not to use the classic read-write lock. More...
bool use_spin_lock_type ()
 Returns whether or not to use the shared spin-lock. More...

Member Typedef Documentation

◆ Observer

Constructor & Destructor Documentation

◆ Trans_delegate()

Trans_delegate::Trans_delegate ( )

Member Function Documentation

◆ after_commit()

int Trans_delegate::after_commit ( THD thd,
bool  all 

◆ after_rollback()

int Trans_delegate::after_rollback ( THD thd,
bool  all 

◆ before_commit()

int Trans_delegate::before_commit ( THD thd,
bool  all,
Binlog_cache_storage trx_cache_log,
Binlog_cache_storage stmt_cache_log,
ulonglong  cache_log_max_size,
bool  is_atomic_ddl 

◆ before_dml()

int Trans_delegate::before_dml ( THD thd,
int &  result 

◆ before_rollback()

int Trans_delegate::before_rollback ( THD thd,
bool  all 

◆ trans_begin()

int Trans_delegate::trans_begin ( THD thd,
int &  result 

The documentation for this class was generated from the following files: