MySQL 8.0.39
Source Code Documentation
Alter_stage_ts Class Reference

class to monitor the progress of 'ALTER TABLESPACE ENCRYPTION' in terms of number of pages operated upon. More...

#include <ut0stage.h>

Public Member Functions

 Alter_stage_ts ()
 Constructor. More...
 
 ~Alter_stage_ts ()
 Destructor. More...
 
void init (int key)
 Initialize. More...
 
void set_estimate (uint64_t units)
 Set estimate. More...
 
void update_work (uint64_t units)
 Update the progress. More...
 
void change_phase ()
 Change phase. More...
 
bool is_completed ()
 

Private Types

enum  { NOT_STARTED = 0 , INITIATED = 1 , WORK_ESTIMATED = 2 , WORK_COMPLETED = 3 }
 Current phase. More...
 

Private Attributes

PSI_stage_progressm_progress
 Performance schema accounting object. More...
 
page_no_t m_work_estimated
 Number of pages to be (un)encrypted . More...
 
page_no_t m_work_done
 Number of pages already (un)encrypted . More...
 
enum Alter_stage_ts:: { ... }  m_cur_phase
 Current phase. More...
 

Detailed Description

class to monitor the progress of 'ALTER TABLESPACE ENCRYPTION' in terms of number of pages operated upon.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Current phase.

Enumerator
NOT_STARTED 

Not open phase.

INITIATED 

Initialised.

WORK_ESTIMATED 

Work estimated phase.

WORK_COMPLETED 

Work completed phase.

Constructor & Destructor Documentation

◆ Alter_stage_ts()

Alter_stage_ts::Alter_stage_ts ( )
inline

Constructor.

◆ ~Alter_stage_ts()

Alter_stage_ts::~Alter_stage_ts ( )
inline

Destructor.

Member Function Documentation

◆ change_phase()

void Alter_stage_ts::change_phase ( )
inline

Change phase.

◆ init()

void Alter_stage_ts::init ( int  key)
inline

Initialize.

Parameters
[in]keyPFS key.

◆ is_completed()

bool Alter_stage_ts::is_completed ( )
inline

◆ set_estimate()

void Alter_stage_ts::set_estimate ( uint64_t  units)
inline

Set estimate.

Parameters
[in]unitsUnits.

◆ update_work()

void Alter_stage_ts::update_work ( uint64_t  units)
inline

Update the progress.

Parameters
[in]unitsUpdate delta.

Member Data Documentation

◆ 

enum { ... } Alter_stage_ts::m_cur_phase

Current phase.

◆ m_progress

PSI_stage_progress* Alter_stage_ts::m_progress
private

Performance schema accounting object.

◆ m_work_done

page_no_t Alter_stage_ts::m_work_done
private

Number of pages already (un)encrypted .

◆ m_work_estimated

page_no_t Alter_stage_ts::m_work_estimated
private

Number of pages to be (un)encrypted .


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