MySQL 8.3.0
Source Code Documentation
Swap_mem_root_guard Class Reference

RAII class to temporarily swap thd->mem_root to a different mem_root. More...

#include <thd_raii.h>

Public Member Functions

 Swap_mem_root_guard (THD *thd, MEM_ROOT *mem_root)
 
 ~Swap_mem_root_guard ()
 
MEM_ROOTold_mem_root ()
 

Private Attributes

THDm_thd
 
MEM_ROOTm_old_mem_root
 

Detailed Description

RAII class to temporarily swap thd->mem_root to a different mem_root.

Constructor & Destructor Documentation

◆ Swap_mem_root_guard()

Swap_mem_root_guard::Swap_mem_root_guard ( THD thd,
MEM_ROOT mem_root 
)
inline

◆ ~Swap_mem_root_guard()

Swap_mem_root_guard::~Swap_mem_root_guard ( )
inline

Member Function Documentation

◆ old_mem_root()

MEM_ROOT * Swap_mem_root_guard::old_mem_root ( )
inline

Member Data Documentation

◆ m_old_mem_root

MEM_ROOT* Swap_mem_root_guard::m_old_mem_root
private

◆ m_thd

THD* Swap_mem_root_guard::m_thd
private

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