MySQL 9.1.0
Source Code Documentation
Engine_combination_tracker Class Reference

#include <engine_combination_tracker.h>

Public Member Functions

bool check_engine (std::string engine_name, std::string database_name, std::string table_name, std::string &prev_engine_name, std::string &prev_database_name, std::string &prev_table_name)
 This function determines whether the current engine is compatible with previous engine or not. More...
 
void clear_known_engine ()
 This method clear the registered engine in the variable m_known_engine. More...
 
bool get_warning_already_emitted ()
 This method get the value of is_warning_already_emitted. More...
 
void set_warning_already_emitted (bool value)
 This method sets the value of is_warning_already_emitted. More...
 

Private Attributes

std::tuple< std::string, std::string, std::string > m_known_engine
 The engine data already seen used to check for incompatibilities. More...
 
bool is_warning_already_emitted = false
 If a warning was already emitted for this transactions. More...
 

Member Function Documentation

◆ check_engine()

bool Engine_combination_tracker::check_engine ( std::string  engine_name,
std::string  database_name,
std::string  table_name,
std::string &  prev_engine_name,
std::string &  prev_database_name,
std::string &  prev_table_name 
)

This function determines whether the current engine is compatible with previous engine or not.

Parameters
[in]engine_namecurrent engine name
[in]database_namecurrent database name
[in]table_namecurrent table name
[out]prev_engine_namethe incompatible engine name (for logging)
[out]prev_database_namethe incompatible database (for logging)
[out]prev_table_namethe incompatible table (for logging)
Return values
trueif engine is not compatible
falseif engine is compatible

◆ clear_known_engine()

void Engine_combination_tracker::clear_known_engine ( )

This method clear the registered engine in the variable m_known_engine.

◆ get_warning_already_emitted()

bool Engine_combination_tracker::get_warning_already_emitted ( )

This method get the value of is_warning_already_emitted.

Return values
trueif a warning was already emitted false otherwise

◆ set_warning_already_emitted()

void Engine_combination_tracker::set_warning_already_emitted ( bool  value)

This method sets the value of is_warning_already_emitted.

Parameters
valuetrue or false

Member Data Documentation

◆ is_warning_already_emitted

bool Engine_combination_tracker::is_warning_already_emitted = false
private

If a warning was already emitted for this transactions.

◆ m_known_engine

std::tuple<std::string, std::string, std::string> Engine_combination_tracker::m_known_engine
private

The engine data already seen used to check for incompatibilities.


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