MySQL 8.0.40
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
log0consumer.h File Reference

Redo log functions and types related to the log consumption. More...

#include "log0types.h"

Go to the source code of this file.

Classes

class  Log_consumer
 
class  Log_user_consumer
 
class  Log_checkpoint_consumer
 

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...
 

Detailed Description

Redo log functions and types related to the log consumption.

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