MySQL 9.0.0
Source Code Documentation
Set_system_variable Class Reference

#include <set_system_variable.h>

Inheritance diagram for Set_system_variable:
[legend]

Public Member Functions

 Set_system_variable ()=default
 
 ~Set_system_variable () override=default
 
int set_global_read_only (bool value)
 Method to set the global value of read_only. More...
 
int set_global_super_read_only (bool value, const std::string &reason)
 Method to set the global value of super_read_only. More...
 
int set_global_offline_mode (bool value, const std::string &reason)
 Method to set the global value of offline_mode. More...
 
int set_persist_only_group_replication_single_primary_mode (bool value)
 Method to only persist the value of group_replication_single_primary_mode. More...
 
int set_persist_only_group_replication_enforce_update_everywhere_checks (bool value)
 Method to only persist the value of group_replication_enforce_update_everywhere_checks. More...
 
void run (Mysql_thread_body_parameters *parameters) override
 Method that will be run on mysql_thread. More...
 

Private Member Functions

int internal_set_system_variable (const std::string &variable, const std::string &value, const std::string &type, unsigned long long lock_wait_timeout, const std::string &reason)
 Method to set the server system variable specified on variable. More...
 
- Private Member Functions inherited from Mysql_thread_body
virtual ~Mysql_thread_body ()
 

Constructor & Destructor Documentation

◆ Set_system_variable()

Set_system_variable::Set_system_variable ( )
default

◆ ~Set_system_variable()

Set_system_variable::~Set_system_variable ( )
overridedefault

Member Function Documentation

◆ internal_set_system_variable()

int Set_system_variable::internal_set_system_variable ( const std::string &  variable,
const std::string &  value,
const std::string &  type,
unsigned long long  lock_wait_timeout,
const std::string &  reason 
)
private

Method to set the server system variable specified on variable.

Parameters
[in]variableThe system variable name to be set
[in]valueThe value to be set
[in]typeGLOBAL or PERSIST_ONLY
[in]lock_wait_timeoutLock wait timeout in seconds
[in]reasonExplains why we set the mode
Returns
the error value returned
Return values
0OK
!=0Error

◆ run()

void Set_system_variable::run ( Mysql_thread_body_parameters parameters)
overridevirtual

Method that will be run on mysql_thread.

Parameters
[in,out]parametersValues used by method to get service variable.

Implements Mysql_thread_body.

◆ set_global_offline_mode()

int Set_system_variable::set_global_offline_mode ( bool  value,
const std::string &  reason 
)

Method to set the global value of offline_mode.

Parameters
[in]valueThe value to be set
[in]reasonExplains why we set the mode
Returns
the error value returned
Return values
0OK
!=0Error

◆ set_global_read_only()

int Set_system_variable::set_global_read_only ( bool  value)

Method to set the global value of read_only.

Parameters
[in]valueThe value to be set
Returns
the error value returned
Return values
0OK
!=0Error

◆ set_global_super_read_only()

int Set_system_variable::set_global_super_read_only ( bool  value,
const std::string &  reason 
)

Method to set the global value of super_read_only.

Parameters
[in]valueThe value to be set
[in]reasonExplains why we set the mode
Returns
the error value returned
Return values
0OK
!=0Error

◆ set_persist_only_group_replication_enforce_update_everywhere_checks()

int Set_system_variable::set_persist_only_group_replication_enforce_update_everywhere_checks ( bool  value)

Method to only persist the value of group_replication_enforce_update_everywhere_checks.

Parameters
[in]valueThe value to be persisted
Returns
the error value returned
Return values
0OK
!=0Error

◆ set_persist_only_group_replication_single_primary_mode()

int Set_system_variable::set_persist_only_group_replication_single_primary_mode ( bool  value)

Method to only persist the value of group_replication_single_primary_mode.

Parameters
[in]valueThe value to be persisted
Returns
the error value returned
Return values
0OK
!=0Error

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