MySQL 8.0.40
Source Code Documentation
Clone_Desc_Locator Struct Reference

CLONE_DESC_LOCATOR: Descriptor for a task for clone operation. More...

#include <clone0desc.h>

Public Member Functions

void init (uint64_t id, uint64_t snap_id, Snapshot_State state, uint version, uint index)
 Initialize clone locator. More...
 
bool match (Clone_Desc_Locator *other_desc)
 Check if the passed locator matches the current one. More...
 
void serialize (byte *&desc_loc, uint &len, Chunk_Info *chunk_info, mem_heap_t *heap)
 Serialize the descriptor. More...
 
void deserialize (const byte *desc_loc, uint desc_len, Chunk_Info *chunk_info)
 Deserialize the descriptor. More...
 

Public Attributes

Clone_Desc_Header m_header
 Descriptor header. More...
 
uint64_t m_clone_id
 Unique identifier for a clone operation. More...
 
uint64_t m_snapshot_id
 Unique identifier for a clone snapshot. More...
 
uint32_t m_clone_index
 Index in clone array for fast reference. More...
 
Snapshot_State m_state
 Current snapshot State. More...
 
bool m_metadata_transferred
 Sub-state information: metadata transferred. More...
 

Detailed Description

CLONE_DESC_LOCATOR: Descriptor for a task for clone operation.

A task is used by exactly one thread

Member Function Documentation

◆ deserialize()

void Clone_Desc_Locator::deserialize ( const byte desc_loc,
uint  desc_len,
Chunk_Info chunk_info 
)

Deserialize the descriptor.

Parameters
[in]desc_locserialized locator
[in]desc_lenlocator length
[in,out]chunk_infochunk information

◆ init()

void Clone_Desc_Locator::init ( uint64_t  id,
uint64_t  snap_id,
Snapshot_State  state,
uint  version,
uint  index 
)

Initialize clone locator.

Parameters
[in]idClone identifier
[in]snap_idSnapshot identifier
[in]statesnapshot state
[in]versionDescriptor version
[in]indexclone index

◆ match()

bool Clone_Desc_Locator::match ( Clone_Desc_Locator other_desc)

Check if the passed locator matches the current one.

Parameters
[in]other_descinput locator descriptor
Returns
true if matches

◆ serialize()

void Clone_Desc_Locator::serialize ( byte *&  desc_loc,
uint len,
Chunk_Info chunk_info,
mem_heap_t heap 
)

Serialize the descriptor.

Caller should pass the length if allocated.

Parameters
[out]desc_locserialized descriptor
[in,out]lenlength of serialized descriptor
[in]chunk_infochunk information to serialize
[in]heapheap for allocating memory

Member Data Documentation

◆ m_clone_id

uint64_t Clone_Desc_Locator::m_clone_id

Unique identifier for a clone operation.

◆ m_clone_index

uint32_t Clone_Desc_Locator::m_clone_index

Index in clone array for fast reference.

◆ m_header

Clone_Desc_Header Clone_Desc_Locator::m_header

Descriptor header.

◆ m_metadata_transferred

bool Clone_Desc_Locator::m_metadata_transferred

Sub-state information: metadata transferred.

◆ m_snapshot_id

uint64_t Clone_Desc_Locator::m_snapshot_id

Unique identifier for a clone snapshot.

◆ m_state

Snapshot_State Clone_Desc_Locator::m_state

Current snapshot State.


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