24#ifndef GR_SET_SYSTEM_VARIABLE
25#define GR_SET_SYSTEM_VARIABLE
50 const std::string &value,
51 const std::string &
type,
52 const std::string &reason)
184 const std::string &value,
185 const std::string &
type,
186 unsigned long long lock_wait_timeout,
187 const std::string &reason);
Interface for Mysql_thread_body parameters.
Definition: mysql_thread.h:39
Interface for Mysql_thread_body, the task of a Mysql_thread.
Definition: mysql_thread.h:108
Definition: set_system_variable.h:30
const std::string m_value
Definition: set_system_variable.h:84
System_variable m_variable
Definition: set_system_variable.h:88
void set_error(int error)
Set value for class private member error.
Definition: set_system_variable.cc:32
virtual ~Set_system_variable_parameters()
Definition: set_system_variable.h:58
System_variable
Definition: set_system_variable.h:32
@ VAR_SUPER_READ_ONLY
Definition: set_system_variable.h:34
@ VAR_GROUP_REPLICATION_SINGLE_PRIMARY_MODE
Definition: set_system_variable.h:36
@ VAR_OFFLINE_MODE
Definition: set_system_variable.h:35
@ VAR_READ_ONLY
Definition: set_system_variable.h:33
@ VAR_GROUP_REPLICATION_ENFORCE_UPDATE_EVERYWHERE_CHECKS
Definition: set_system_variable.h:37
int m_error
Definition: set_system_variable.h:89
Set_system_variable_parameters::System_variable get_variable()
Get value for class private member variable.
Definition: set_system_variable.cc:35
const std::string m_reason
Definition: set_system_variable.h:92
const std::string m_type
Definition: set_system_variable.h:85
int get_error()
Get value for class private member error.
Definition: set_system_variable.cc:30
Set_system_variable_parameters(System_variable variable, const std::string &value, const std::string &type, const std::string &reason)
Set_system_variable_parameters constructor.
Definition: set_system_variable.h:49
Definition: set_system_variable.h:95
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.
Definition: set_system_variable.cc:166
int set_global_super_read_only(bool value, const std::string &reason)
Method to set the global value of super_read_only.
Definition: set_system_variable.cc:70
Set_system_variable()=default
int set_global_offline_mode(bool value, const std::string &reason)
Method to set the global value of offline_mode.
Definition: set_system_variable.cc:108
int set_persist_only_group_replication_single_primary_mode(bool value)
Method to only persist the value of group_replication_single_primary_mode.
Definition: set_system_variable.cc:139
~Set_system_variable() override=default
void run(Mysql_thread_body_parameters *parameters) override
Method that will be run on mysql_thread.
Definition: set_system_variable.cc:192
int set_global_read_only(bool value)
Method to set the global value of read_only.
Definition: set_system_variable.cc:39
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.
Definition: set_system_variable.cc:242
System variable derived from sys_var object.
Definition: pfs_variable.h:169
required string type
Definition: replication_group_member_actions.proto:34