MySQL 8.4.2
Source Code Documentation
Log_files_stats Struct Reference

Runtime statistics related to redo log files management. More...

#include <log0types.h>

Public Member Functions

Log - files management.
void update (const log_t &log)
 Tries to update stats. More...
 

Public Attributes

Log_clock_point m_last_update_time {}
 Last time stats were updated (last successful call to. More...
 
lsn_t m_lsn_consumption_per_1s {0}
 LSN difference by which result of log_files_oldest_needed_lsn() advanced during last second. More...
 
lsn_t m_lsn_production_per_1s {0}
 LSN difference by which result of log_files_newest_needed_lsn() advanced during last second. More...
 
lsn_t m_oldest_lsn_on_update {0}
 Oldest LSN returned by log_files_oldest_needed_lsn() during last successful call to. More...
 
lsn_t m_newest_lsn_on_update {0}
 Newest LSN returned by log_files_newest_needed_lsn() during last successful call to. More...
 

Detailed Description

Runtime statistics related to redo log files management.

These stats are not persisted to disk.

Member Function Documentation

◆ update()

void Log_files_stats::update ( const log_t log)

Tries to update stats.

Fails and skips updating if less than 1s elapsed since last successful update, else: updates the stats and succeeds.

Parameters
[in]logredo log

Member Data Documentation

◆ m_last_update_time

Log_clock_point Log_files_stats::m_last_update_time {}

Last time stats were updated (last successful call to.

See also
update()).

◆ m_lsn_consumption_per_1s

lsn_t Log_files_stats::m_lsn_consumption_per_1s {0}

LSN difference by which result of log_files_oldest_needed_lsn() advanced during last second.

This is basically average consumption speed. Updated by successful calls to

See also
update().

◆ m_lsn_production_per_1s

lsn_t Log_files_stats::m_lsn_production_per_1s {0}

LSN difference by which result of log_files_newest_needed_lsn() advanced during last second.

This is basically average production speed. Updated by successful calls to

See also
update().

◆ m_newest_lsn_on_update

lsn_t Log_files_stats::m_newest_lsn_on_update {0}

Newest LSN returned by log_files_newest_needed_lsn() during last successful call to.

See also
update().

◆ m_oldest_lsn_on_update

lsn_t Log_files_stats::m_oldest_lsn_on_update {0}

Oldest LSN returned by log_files_oldest_needed_lsn() during last successful call to.

See also
update().

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