MySQL 9.1.0
Source Code Documentation
|
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... | |
CLONE_DESC_STATE: Descriptor for current snapshot state.
bool Clone_Desc_State::deserialize | ( | const byte * | desc_state, |
uint | desc_len | ||
) |
Deserialize the descriptor.
[in] | desc_state | serialized descriptor |
[in] | desc_len | descriptor length |
void Clone_Desc_State::init_header | ( | uint | version | ) |
Initialize header.
[in] | version | descriptor version |
void Clone_Desc_State::serialize | ( | byte *& | desc_state, |
uint & | len, | ||
mem_heap_t * | heap | ||
) |
Serialize the descriptor.
Caller should pass the length if allocated.
[out] | desc_state | serialized descriptor |
[in,out] | len | length of serialized descriptor |
[in] | heap | heap for allocating memory |
uint64_t Clone_Desc_State::m_estimate |
Number of estimated bytes to transfer.
uint64_t Clone_Desc_State::m_estimate_disk |
Number of estimated bytes on disk.
Clone_Desc_Header Clone_Desc_State::m_header |
Descriptor header.
bool Clone_Desc_State::m_is_ack |
State transfer Acknowledgement.
bool Clone_Desc_State::m_is_start |
If start processing state.
uint Clone_Desc_State::m_num_chunks |
Number of chunks in current state.
uint Clone_Desc_State::m_num_files |
Number of files in current state.
Snapshot_State Clone_Desc_State::m_state |
Current snapshot State.
uint Clone_Desc_State::m_task_index |
Task identifier.