MySQL 8.4.2
Source Code Documentation
Clone_Desc_File_MetaData Struct Reference

CLONE_DESC_FILE_METADATA: Descriptor for file metadata. More...

#include <clone0desc.h>

Public Member Functions

void init_header (uint version)
 Initialize header. More...
 
void serialize (byte *&desc_file, uint &len, mem_heap_t *heap)
 Serialize the descriptor. More...
 
bool deserialize (const byte *desc_file, 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_File_Meta m_file_meta
 File metadata. More...
 

Detailed Description

CLONE_DESC_FILE_METADATA: Descriptor for file metadata.

Member Function Documentation

◆ deserialize()

bool Clone_Desc_File_MetaData::deserialize ( const byte desc_file,
uint  desc_len 
)

Deserialize the descriptor.

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

◆ init_header()

void Clone_Desc_File_MetaData::init_header ( uint  version)

Initialize header.

Parameters
[in]versiondescriptor version

◆ serialize()

void Clone_Desc_File_MetaData::serialize ( byte *&  desc_file,
uint &  len,
mem_heap_t heap 
)

Serialize the descriptor.

Caller should pass the length if allocated.

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

Member Data Documentation

◆ m_file_meta

Clone_File_Meta Clone_Desc_File_MetaData::m_file_meta

File metadata.

◆ m_header

Clone_Desc_Header Clone_Desc_File_MetaData::m_header

Descriptor header.

◆ m_state

Snapshot_State Clone_Desc_File_MetaData::m_state

Current snapshot State.


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