MySQL 8.0.40
Source Code Documentation
log0consumer.cc File Reference
#include "log0consumer.h"
#include "arch0arch.h"
#include "arch0log.h"
#include "log0chkp.h"
#include "log0files_governor.h"
#include "log0log.h"
#include "srv0shutdown.h"
#include "srv0start.h"

Functions

void log_consumer_register (log_t &log, Log_consumer *log_consumer)
 Register the given redo log consumer. More...
 
void log_consumer_unregister (log_t &log, Log_consumer *log_consumer)
 Unregister the given redo log consumer. More...
 
Log_consumerlog_consumer_get_oldest (const log_t &log, lsn_t &oldest_needed_lsn)
 Find the registered redo log consumer which has the smallest value reported by get_consumed_lsn() - ie. More...
 

Function Documentation

◆ log_consumer_get_oldest()

Log_consumer * log_consumer_get_oldest ( const log_t log,
lsn_t oldest_needed_lsn 
)

Find the registered redo log consumer which has the smallest value reported by get_consumed_lsn() - ie.

the most lagging consumer. When multiple consumers have the same value, any of them might be returned.

Parameters
[in]logthe redo log
[out]oldest_needed_lsnthe oldest lsn needed by the most lagging consumer
Returns
the most lagging consumer

◆ log_consumer_register()

void log_consumer_register ( log_t log,
Log_consumer log_consumer 
)

Register the given redo log consumer.

Parameters
[in,out]logredo log
[in]log_consumerredo log consumer to register

◆ log_consumer_unregister()

void log_consumer_unregister ( log_t log,
Log_consumer log_consumer 
)

Unregister the given redo log consumer.

Parameters
[in,out]logredo log
[in]log_consumerredo log consumer to unregister