MySQL 8.3.0
Source Code Documentation
Implicit_substatement_state_guard Class Reference

RAII class which allows to temporary disable updating Gtid_state and disable invocation of commit order for intermediate commits. More...

#include <thd_raii.h>

Public Member Functions

 Implicit_substatement_state_guard (THD *thd, enum_implicit_substatement_guard_mode mode=enum_implicit_substatement_guard_mode::DISABLE_GTID_AND_SPCO)
 Constructs a new object and set thd->is_operating_substatement_implicitly and thd->skip_gtid_rollback according to enum_implicit_substatement_guard_mode mode argument. More...
 
 ~Implicit_substatement_state_guard ()
 

Private Attributes

THDm_thd
 
bool m_save_is_operating_substatement_implicitly
 
bool m_save_skip_gtid_rollback
 
bool m_guard_ignored
 

Detailed Description

RAII class which allows to temporary disable updating Gtid_state and disable invocation of commit order for intermediate commits.

Constructor & Destructor Documentation

◆ Implicit_substatement_state_guard()

Implicit_substatement_state_guard::Implicit_substatement_state_guard ( THD thd,
enum_implicit_substatement_guard_mode  mode = enum_implicit_substatement_guard_mode::DISABLE_GTID_AND_SPCO 
)
inlineexplicit

Constructs a new object and set thd->is_operating_substatement_implicitly and thd->skip_gtid_rollback according to enum_implicit_substatement_guard_mode mode argument.

Parameters
thdThread context.
modeIf mode is not ENABLE_GTID_AND_SPCO_IF_SPCO_ACTIVE then temporary disable updating Gtid_state and invocation of commit order (Commit_order_manager::wait).

◆ ~Implicit_substatement_state_guard()

Implicit_substatement_state_guard::~Implicit_substatement_state_guard ( )
inline

Member Data Documentation

◆ m_guard_ignored

bool Implicit_substatement_state_guard::m_guard_ignored
private

◆ m_save_is_operating_substatement_implicitly

bool Implicit_substatement_state_guard::m_save_is_operating_substatement_implicitly
private

◆ m_save_skip_gtid_rollback

bool Implicit_substatement_state_guard::m_save_skip_gtid_rollback
private

◆ m_thd

THD* Implicit_substatement_state_guard::m_thd
private

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