MySQL 9.1.0
Source Code Documentation
|
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... | |
CLONE_DESC_LOCATOR: Descriptor for a task for clone operation.
A task is used by exactly one thread
void Clone_Desc_Locator::deserialize | ( | const byte * | desc_loc, |
uint | desc_len, | ||
Chunk_Info * | chunk_info | ||
) |
Deserialize the descriptor.
[in] | desc_loc | serialized locator |
[in] | desc_len | locator length |
[in,out] | chunk_info | chunk information |
void Clone_Desc_Locator::init | ( | uint64_t | id, |
uint64_t | snap_id, | ||
Snapshot_State | state, | ||
uint | version, | ||
uint | index | ||
) |
Initialize clone locator.
[in] | id | Clone identifier |
[in] | snap_id | Snapshot identifier |
[in] | state | snapshot state |
[in] | version | Descriptor version |
[in] | index | clone index |
bool Clone_Desc_Locator::match | ( | Clone_Desc_Locator * | other_desc | ) |
Check if the passed locator matches the current one.
[in] | other_desc | input locator descriptor |
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.
[out] | desc_loc | serialized descriptor |
[in,out] | len | length of serialized descriptor |
[in] | chunk_info | chunk information to serialize |
[in] | heap | heap for allocating memory |
uint64_t Clone_Desc_Locator::m_clone_id |
Unique identifier for a clone operation.
uint32_t Clone_Desc_Locator::m_clone_index |
Index in clone array for fast reference.
Clone_Desc_Header Clone_Desc_Locator::m_header |
Descriptor header.
bool Clone_Desc_Locator::m_metadata_transferred |
Sub-state information: metadata transferred.
uint64_t Clone_Desc_Locator::m_snapshot_id |
Unique identifier for a clone snapshot.
Snapshot_State Clone_Desc_Locator::m_state |
Current snapshot State.