MySQL 9.1.0
Source Code Documentation
Clone_Snapshot::State_transit Class Reference

RAII style guard for begin & end of snapshot state transition. More...

#include <clone0snapshot.h>

Public Member Functions

 State_transit (Clone_Snapshot *snapshot, Snapshot_State new_state)
 Constructor to begin state transition. More...
 
 ~State_transit ()
 Destructor to end state transition. More...
 
int get_error () const
 
 State_transit (State_transit const &)=delete
 Disable copy construction. More...
 
State_transitoperator= (State_transit const &)=delete
 Disable assignment. More...
 

Private Attributes

Clone_Snapshotm_snapshot
 Clone Snapshot. More...
 
int m_error
 Saved error while beginning transition. More...
 

Detailed Description

RAII style guard for begin & end of snapshot state transition.

Constructor & Destructor Documentation

◆ State_transit() [1/2]

Clone_Snapshot::State_transit::State_transit ( Clone_Snapshot snapshot,
Snapshot_State  new_state 
)
explicit

Constructor to begin state transition.

Parameters
[in,out]snapshotClone Snapshot
[in]new_stateState to transit

◆ ~State_transit()

Clone_Snapshot::State_transit::~State_transit ( )

Destructor to end state transition.

◆ State_transit() [2/2]

Clone_Snapshot::State_transit::State_transit ( State_transit const &  )
delete

Disable copy construction.

Member Function Documentation

◆ get_error()

int Clone_Snapshot::State_transit::get_error ( ) const
inline
Returns
error code

◆ operator=()

State_transit & Clone_Snapshot::State_transit::operator= ( State_transit const &  )
delete

Disable assignment.

Member Data Documentation

◆ m_error

int Clone_Snapshot::State_transit::m_error
private

Saved error while beginning transition.

◆ m_snapshot

Clone_Snapshot* Clone_Snapshot::State_transit::m_snapshot
private

Clone Snapshot.


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