MySQL 26.7.0
Source Code Documentation
ib::redo::Sys_var_handler Class Referencefinal

This class implements the handling of redo log related system variables. More...

#include <log0sys_var_handler.h>

Inheritance diagram for ib::redo::Sys_var_handler:
[legend]

Public Member Functions

 Sys_var_handler (Handler &handler)
 
 ~Sys_var_handler () override
 
bool update_var (THD *thd, std::string_view name, uint64_t new_value) override
 Update the system variable to the new value. More...
 
bool update_var (THD *thd, std::string_view name, bool new_value) override
 Update the system variable to the new value. More...
 
- Public Member Functions inherited from ib::Sys_var_handler_interface
virtual ~Sys_var_handler_interface ()=default
 Default destructor. More...
 

Private Member Functions

bool buffer_size_update (uint64_t value)
 Update the innodb_log_buffer_size system variable. More...
 
void writer_threads_update (bool value)
 Update the innodb_log_writer_threads system variable. More...
 
bool capacity_update (THD *thd, std::string_view var_name, uint64_t value)
 Update the innodb_redo_log_capacity system variable. More...
 
bool log_write_ahead_size_update (THD *thd, std::string_view var_name, uint64_t value)
 

Private Attributes

Handlerm_handler
 

Detailed Description

This class implements the handling of redo log related system variables.

Constructor & Destructor Documentation

◆ Sys_var_handler()

ib::redo::Sys_var_handler::Sys_var_handler ( Handler handler)
inline

◆ ~Sys_var_handler()

ib::redo::Sys_var_handler::~Sys_var_handler ( )
override

Member Function Documentation

◆ buffer_size_update()

bool ib::redo::Sys_var_handler::buffer_size_update ( uint64_t  value)
private

Update the innodb_log_buffer_size system variable.

◆ capacity_update()

bool ib::redo::Sys_var_handler::capacity_update ( THD thd,
std::string_view  var_name,
uint64_t  value 
)
private

Update the innodb_redo_log_capacity system variable.

◆ log_write_ahead_size_update()

bool ib::redo::Sys_var_handler::log_write_ahead_size_update ( THD thd,
std::string_view  var_name,
uint64_t  value 
)
private

◆ update_var() [1/2]

bool ib::redo::Sys_var_handler::update_var ( THD thd,
std::string_view  name,
bool  new_value 
)
overridevirtual

Update the system variable to the new value.

Parameters
[in]thdTHD object, may be used to print warning
[in]nameThe system variable name
[in]new_valueThe value to be updated
Returns
true System variable was updated successfully
false Otherwise

Implements ib::Sys_var_handler_interface.

◆ update_var() [2/2]

bool ib::redo::Sys_var_handler::update_var ( THD thd,
std::string_view  name,
uint64_t  new_value 
)
overridevirtual

Update the system variable to the new value.

Parameters
[in]thdTHD object, may be used to print warning
[in]nameThe system variable name
[in]new_valueThe value to be updated
Returns
true System variable was updated successfully
false Otherwise

Implements ib::Sys_var_handler_interface.

◆ writer_threads_update()

void ib::redo::Sys_var_handler::writer_threads_update ( bool  value)
private

Update the innodb_log_writer_threads system variable.

Member Data Documentation

◆ m_handler

Handler& ib::redo::Sys_var_handler::m_handler
private

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