MySQL 9.4.0
Source Code Documentation
Arch_log_consumer Class Reference

#include <arch0arch.h>

Inheritance diagram for Arch_log_consumer:
[legend]

Public Member Functions

const std::string & get_name () const override
 
lsn_t get_consumed_lsn () const override
 
void consumption_requested (lsn_t request_lsn) override
 Request the log consumer to consume faster. More...
 
- Public Member Functions inherited from Log_consumer
virtual ~Log_consumer ()
 

Private Attributes

std::chrono::system_clock::time_point m_last_rushed_at
 
std::chrono::system_clock::time_point m_problem_started_at
 

Member Function Documentation

◆ consumption_requested()

void Arch_log_consumer::consumption_requested ( lsn_t  request_lsn)
overridevirtual

Request the log consumer to consume faster.

Remarks
This is called whenever the redo log consumer is the most lagging one and it is critical to consume up to the request_lsn. The caller has to hold log.files_mutex and log.limits_mutex.

Implements Log_consumer.

◆ get_consumed_lsn()

lsn_t Arch_log_consumer::get_consumed_lsn ( ) const
overridevirtual
Returns
Maximum LSN up to which this consumer has consumed redo. The caller should acquire log.files_mutex.

Implements Log_consumer.

◆ get_name()

const std::string & Arch_log_consumer::get_name ( ) const
overridevirtual
Returns
Name of this consumer.

Implements Log_consumer.

Member Data Documentation

◆ m_last_rushed_at

std::chrono::system_clock::time_point Arch_log_consumer::m_last_rushed_at
private

◆ m_problem_started_at

std::chrono::system_clock::time_point Arch_log_consumer::m_problem_started_at
private

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