MySQL 26.7.0
Source Code Documentation
ut0atomic_sysvar.h File Reference
#include <atomic>
#include <functional>
#include <type_traits>
#include <vector>
#include "sql_class.h"

Go to the source code of this file.

Classes

class  Atomic_sysvar< T >
 A helper class for numeric sysvars which can be read in thread-safe way. More...
 
struct  Atomic_sysvar< T >::Data
 Contains all members of Atomic_sysvar<T> in a standard layout struct - which, among other things, means we can't mix private with public, use virtual methods, nor std::function<>. More...
 

Macros

#define ATOMIC_SYSVAR_ULONG(sysvar_name_suffix, flags, description, validate, after_change, default_value, min_value, max_value, value_granularity)
 

Variables

std::vector< std::function< void()> > innodb_sysvar_initializers
 Set of callbacks to be executed in innodb_init_params() to react to changes server layer did directly to in-memory variables as a result of processing the command line arguments and config files without calling on-update callbacks. More...
 

Macro Definition Documentation

◆ ATOMIC_SYSVAR_ULONG

#define ATOMIC_SYSVAR_ULONG (   sysvar_name_suffix,
  flags,
  description,
  validate,
  after_change,
  default_value,
  min_value,
  max_value,
  value_granularity 
)
Value:
Atomic_sysvar<ulong> innodb_##sysvar_name_suffix(after_change); \
sysvar_name_suffix, innodb_##sysvar_name_suffix.registrable(), flags, \
description, validate, innodb_##sysvar_name_suffix.update, \
default_value, min_value, max_value, value_granularity)
A helper class for numeric sysvars which can be read in thread-safe way.
Definition: ut0atomic_sysvar.h:36
static int flags[50]
Definition: hp_test1.cc:40
#define MYSQL_SYSVAR_ULONG(name, varname, opt, comment, check, update, def, min, max, blk)
Definition: plugin.h:346

Variable Documentation

◆ innodb_sysvar_initializers

std::vector<std::function<void()> > innodb_sysvar_initializers
extern

Set of callbacks to be executed in innodb_init_params() to react to changes server layer did directly to in-memory variables as a result of processing the command line arguments and config files without calling on-update callbacks.

Note that mysql-auto.cnf (which is generated by SET PERSIST) is processed via regular "update" path as if user performed SET, and this happens after innodb_init_params()