MySQL 8.4.2
Source Code Documentation
mysql_before_commit_transaction_control_imp Class Reference

This class is the implementation of service mysql_before_commit_transaction_control. More...

#include <mysql_transaction_delegate_control_imp.h>

Static Public Member Functions

static void stop () noexcept
 Method rollback any transaction that reaches the commit stage. More...
 
static void allow () noexcept
 Method re-allows the commit, earlier stopped in stop function. More...
 

Detailed Description

This class is the implementation of service mysql_before_commit_transaction_control.

See also
service mysql_before_commit_transaction_control

Member Function Documentation

◆ allow()

void mysql_before_commit_transaction_control_imp::allow ( )
staticnoexcept

Method re-allows the commit, earlier stopped in stop function.

◆ stop()

void mysql_before_commit_transaction_control_imp::stop ( )
staticnoexcept

Method rollback any transaction that reaches the commit stage.

Rollback the transactions that have passed the begin hook but have yet not reached the before_commit stage. There can be some transactions that are yet not known as binloggable, so the THD::KILL_CONNECTION is not set. This function sets a flag to rollback the transactions.


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