MySQL 9.0.0
Source Code Documentation
Clone_Desc_State Struct Reference

CLONE_DESC_STATE: Descriptor for current snapshot state. More...

#include <clone0desc.h>

Public Member Functions

void init_header (uint version)
 Initialize header. More...
 
void serialize (byte *&desc_state, uint &len, mem_heap_t *heap)
 Serialize the descriptor. More...
 
bool deserialize (const byte *desc_state, uint desc_len)
 Deserialize the descriptor. More...
 

Public Attributes

Clone_Desc_Header m_header
 Descriptor header. More...
 
Snapshot_State m_state
 Current snapshot State. More...
 
uint m_task_index
 Task identifier. More...
 
uint m_num_chunks
 Number of chunks in current state. More...
 
uint m_num_files
 Number of files in current state. More...
 
uint64_t m_estimate
 Number of estimated bytes to transfer. More...
 
uint64_t m_estimate_disk
 Number of estimated bytes on disk. More...
 
bool m_is_start
 If start processing state. More...
 
bool m_is_ack
 State transfer Acknowledgement. More...
 

Detailed Description

CLONE_DESC_STATE: Descriptor for current snapshot state.

Member Function Documentation

◆ deserialize()

bool Clone_Desc_State::deserialize ( const byte desc_state,
uint  desc_len 
)

Deserialize the descriptor.

Parameters
[in]desc_stateserialized descriptor
[in]desc_lendescriptor length
Returns
true, if successful.

◆ init_header()

void Clone_Desc_State::init_header ( uint  version)

Initialize header.

Parameters
[in]versiondescriptor version

◆ serialize()

void Clone_Desc_State::serialize ( byte *&  desc_state,
uint &  len,
mem_heap_t heap 
)

Serialize the descriptor.

Caller should pass the length if allocated.

Parameters
[out]desc_stateserialized descriptor
[in,out]lenlength of serialized descriptor
[in]heapheap for allocating memory

Member Data Documentation

◆ m_estimate

uint64_t Clone_Desc_State::m_estimate

Number of estimated bytes to transfer.

◆ m_estimate_disk

uint64_t Clone_Desc_State::m_estimate_disk

Number of estimated bytes on disk.

◆ m_header

Clone_Desc_Header Clone_Desc_State::m_header

Descriptor header.

◆ m_is_ack

bool Clone_Desc_State::m_is_ack

State transfer Acknowledgement.

◆ m_is_start

bool Clone_Desc_State::m_is_start

If start processing state.

◆ m_num_chunks

uint Clone_Desc_State::m_num_chunks

Number of chunks in current state.

◆ m_num_files

uint Clone_Desc_State::m_num_files

Number of files in current state.

◆ m_state

Snapshot_State Clone_Desc_State::m_state

Current snapshot State.

◆ m_task_index

uint Clone_Desc_State::m_task_index

Task identifier.


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