![]() |
MySQL 26.7.0
Source Code Documentation
|
RAII guard for temporarily switching current_thd to a session THD. More...
#include <session_guard.h>
Public Member Functions | |
| Session_guard (THD *thd) | |
| Constructor: saves original current_thd and sets to the given thd. More... | |
| ~Session_guard () | |
| Destructor: restores the original current_thd. More... | |
Private Attributes | |
| THD * | m_orig_thd {nullptr} |
RAII guard for temporarily switching current_thd to a session THD.
Saves the original current_thd in ctor and restores it in dtor.
|
inline |
Constructor: saves original current_thd and sets to the given thd.
|
inline |
Destructor: restores the original current_thd.