MySQL 9.1.0
Source Code Documentation
|
Redo Log archiver client context. More...
#include <arch0log.h>
Public Member Functions | |
Log_Arch_Client_Ctx () | |
Constructor: Initialize elementsf. More... | |
os_offset_t | get_archived_file_size () const |
Get redo file size for archived log file. More... | |
void | get_header_size (uint &header_sz, uint &trailer_sz) const |
Get redo header and trailer size. More... | |
int | start (byte *header, uint len) |
Start redo log archiving. More... | |
int | stop (byte *trailer, uint32_t &len, uint64_t &offset) |
Stop redo log archiving. More... | |
int | get_files (Log_Arch_Cbk *cbk_func, void *ctx) |
Get archived data file details. More... | |
void | release () |
Release archived data so that system can purge it. More... | |
Private Attributes | |
Arch_Client_State | m_state |
Archiver client state. More... | |
Arch_Group * | m_group |
Archive group the client is attached to. More... | |
lsn_t | m_begin_lsn |
Start LSN for archived data. More... | |
lsn_t | m_end_lsn |
Stop LSN for archived data. More... | |
Redo Log archiver client context.
|
inline |
Constructor: Initialize elementsf.
os_offset_t Log_Arch_Client_Ctx::get_archived_file_size | ( | ) | const |
Get redo file size for archived log file.
int Log_Arch_Client_Ctx::get_files | ( | Log_Arch_Cbk * | cbk_func, |
void * | ctx | ||
) |
Get archived data file details.
[in] | cbk_func | callback called for each file |
[in] | ctx | callback function context |
void Log_Arch_Client_Ctx::get_header_size | ( | uint & | header_sz, |
uint & | trailer_sz | ||
) | const |
Get redo header and trailer size.
[out] | header_sz | redo header size |
[out] | trailer_sz | redo trailer size |
void Log_Arch_Client_Ctx::release | ( | ) |
Release archived data so that system can purge it.
int Log_Arch_Client_Ctx::start | ( | byte * | header, |
uint | len | ||
) |
Start redo log archiving.
[out] | header | buffer for redo header (caller must allocate) |
[in] | len | buffer length |
int Log_Arch_Client_Ctx::stop | ( | byte * | trailer, |
uint32_t & | len, | ||
uint64_t & | offset | ||
) |
Stop redo log archiving.
Exact trailer length is returned as out parameter which could be less than the redo block size.
[out] | trailer | redo trailer. Caller must allocate buffer. |
[in,out] | len | trailer length |
[out] | offset | trailer block offset |
|
private |
Start LSN for archived data.
|
private |
Stop LSN for archived data.
|
private |
Archive group the client is attached to.
|
private |
Archiver client state.