MySQL 8.0.39
Source Code Documentation
Srv_session::Session_backup_and_attach Class Reference

Public Member Functions

 Session_backup_and_attach (Srv_session *sess, bool is_in_close_session)
 Constructs a session state object. More...
 
 ~Session_backup_and_attach ()
 Destructs the session state object. More...
 

Public Attributes

bool attach_error
 

Private Attributes

Srv_sessionsession
 
Srv_sessionold_session
 
THDbackup_thd
 
bool in_close_session
 

Constructor & Destructor Documentation

◆ Session_backup_and_attach()

Srv_session::Session_backup_and_attach::Session_backup_and_attach ( Srv_session sess,
bool  is_in_close_session 
)

Constructs a session state object.

Saves state then attaches a session. Uses RAII.

Parameters
sessSession to backup
is_in_close_sessionWhether session needs to be closed.

◆ ~Session_backup_and_attach()

Srv_session::Session_backup_and_attach::~Session_backup_and_attach ( )

Destructs the session state object.

In other words it restores to previous state.

Member Data Documentation

◆ attach_error

bool Srv_session::Session_backup_and_attach::attach_error

◆ backup_thd

THD* Srv_session::Session_backup_and_attach::backup_thd
private

◆ in_close_session

bool Srv_session::Session_backup_and_attach::in_close_session
private

◆ old_session

Srv_session* Srv_session::Session_backup_and_attach::old_session
private

◆ session

Srv_session* Srv_session::Session_backup_and_attach::session
private

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