MySQL 8.0.31
Source Code Documentation
dd::upgrade_57::Thd_mem_root_guard Class Reference

THD::mem_root is only switched with the given mem_root and switched back on destruction. More...

#include <global.h>

Public Member Functions

 Thd_mem_root_guard (THD *thd, MEM_ROOT *mem_root)
 
 ~Thd_mem_root_guard ()
 

Private Attributes

THDm_thd
 
MEM_ROOTm_thd_prev_mem_root
 

Detailed Description

THD::mem_root is only switched with the given mem_root and switched back on destruction.

This does not free any mem_root.

Constructor & Destructor Documentation

◆ Thd_mem_root_guard()

dd::upgrade_57::Thd_mem_root_guard::Thd_mem_root_guard ( THD thd,
MEM_ROOT mem_root 
)

◆ ~Thd_mem_root_guard()

dd::upgrade_57::Thd_mem_root_guard::~Thd_mem_root_guard ( )

Member Data Documentation

◆ m_thd

THD* dd::upgrade_57::Thd_mem_root_guard::m_thd
private

◆ m_thd_prev_mem_root

MEM_ROOT* dd::upgrade_57::Thd_mem_root_guard::m_thd_prev_mem_root
private

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