MySQL 8.0.40
Source Code Documentation
Clone_Desc_Data Struct Reference

CLONE_DESC_DATA: Descriptor for data. More...

#include <clone0desc.h>

Public Member Functions

void init_header (uint version)
 Initialize header. More...
 
void serialize (byte *&desc_data, uint &len, mem_heap_t *heap)
 Serialize the descriptor. More...
 
bool deserialize (const byte *desc_data, 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...
 
Clone_Task_Meta m_task_meta
 Task information. More...
 
uint32_t m_file_index
 File identifier. More...
 
uint32_t m_data_len
 Data Length. More...
 
uint64_t m_file_offset
 File offset for the data. More...
 
uint64_t m_file_size
 Updated file size. More...
 

Detailed Description

CLONE_DESC_DATA: Descriptor for data.

Member Function Documentation

◆ deserialize()

bool Clone_Desc_Data::deserialize ( const byte desc_data,
uint  desc_len 
)

Deserialize the descriptor.

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

◆ init_header()

void Clone_Desc_Data::init_header ( uint  version)

Initialize header.

Parameters
[in]versiondescriptor version

◆ serialize()

void Clone_Desc_Data::serialize ( byte *&  desc_data,
uint len,
mem_heap_t heap 
)

Serialize the descriptor.

Caller should pass the length if allocated.

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

Member Data Documentation

◆ m_data_len

uint32_t Clone_Desc_Data::m_data_len

Data Length.

◆ m_file_index

uint32_t Clone_Desc_Data::m_file_index

File identifier.

◆ m_file_offset

uint64_t Clone_Desc_Data::m_file_offset

File offset for the data.

◆ m_file_size

uint64_t Clone_Desc_Data::m_file_size

Updated file size.

◆ m_header

Clone_Desc_Header Clone_Desc_Data::m_header

Descriptor header.

◆ m_state

Snapshot_State Clone_Desc_Data::m_state

Current snapshot State.

◆ m_task_meta

Clone_Task_Meta Clone_Desc_Data::m_task_meta

Task information.


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