MySQL 9.1.0
Source Code Documentation
ha_blackhole.cc File Reference
#include "storage/blackhole/ha_blackhole.h"
#include "ft_global.h"
#include "m_string.h"
#include "map_helpers.h"
#include "my_alloc.h"
#include "my_base.h"
#include "my_dbug.h"
#include "my_psi_config.h"
#include "mysql/plugin.h"
#include "mysql/psi/mysql_memory.h"
#include "sql/sql_class.h"
#include "template_utils.h"

Classes

struct  blackhole_free_share
 

Macros

#define MYSQL_SERVER   1
 

Typedefs

using blackhole_share_with_deleter = unique_ptr< st_blackhole_share, blackhole_free_share >
 

Functions

static bool is_slave_applier (THD *thd)
 
static handlerblackhole_create_handler (handlerton *hton, TABLE_SHARE *table, bool, MEM_ROOT *mem_root)
 
static st_blackhole_shareget_share (const char *table_name)
 
static void free_share (st_blackhole_share *share)
 
static void init_blackhole_psi_keys ()
 
static int blackhole_init (void *p)
 
static int blackhole_fini (void *)
 
 mysql_declare_plugin (blackhole)
 

Variables

static PSI_memory_key bh_key_memory_blackhole_share
 
static mysql_mutex_t blackhole_mutex
 
static unique_ptr< collation_unordered_map< string, blackhole_share_with_deleter > > blackhole_open_tables
 
static PSI_mutex_key bh_key_mutex_blackhole
 
static PSI_mutex_info all_blackhole_mutexes []
 
static PSI_memory_info all_blackhole_memory []
 
struct st_mysql_storage_engine blackhole_storage_engine
 
 mysql_declare_plugin_end
 

Macro Definition Documentation

◆ MYSQL_SERVER

#define MYSQL_SERVER   1

Typedef Documentation

◆ blackhole_share_with_deleter

Function Documentation

◆ blackhole_create_handler()

static handler * blackhole_create_handler ( handlerton hton,
TABLE_SHARE table,
bool  ,
MEM_ROOT mem_root 
)
static

◆ blackhole_fini()

static int blackhole_fini ( void *  )
static

◆ blackhole_init()

static int blackhole_init ( void *  p)
static

◆ free_share()

static void free_share ( st_blackhole_share share)
static

◆ get_share()

static st_blackhole_share * get_share ( const char *  table_name)
static

◆ init_blackhole_psi_keys()

static void init_blackhole_psi_keys ( )
static

◆ is_slave_applier()

static bool is_slave_applier ( THD thd)
static

◆ mysql_declare_plugin()

mysql_declare_plugin ( blackhole  )

Variable Documentation

◆ all_blackhole_memory

PSI_memory_info all_blackhole_memory[]
static
Initial value:
= {
{&bh_key_memory_blackhole_share, "blackhole_share",
#define PSI_DOCUMENT_ME
Definition: component_common.h:29
#define PSI_FLAG_ONLY_GLOBAL_STAT
Global stat only flag.
Definition: psi_bits.h:112
static PSI_memory_key bh_key_memory_blackhole_share
Definition: ha_blackhole.cc:44

◆ all_blackhole_mutexes

PSI_mutex_info all_blackhole_mutexes[]
static
Initial value:
= {
#define PSI_FLAG_SINGLETON
Singleton flag.
Definition: component_common.h:35
static PSI_mutex_key bh_key_mutex_blackhole
Definition: ha_blackhole.cc:315

◆ bh_key_memory_blackhole_share

PSI_memory_key bh_key_memory_blackhole_share
static

◆ bh_key_mutex_blackhole

PSI_mutex_key bh_key_mutex_blackhole
static

◆ blackhole_mutex

mysql_mutex_t blackhole_mutex
static

◆ blackhole_open_tables

unique_ptr<collation_unordered_map<string, blackhole_share_with_deleter> > blackhole_open_tables
static

◆ blackhole_storage_engine

struct st_mysql_storage_engine blackhole_storage_engine
Initial value:
= {
#define MYSQL_HANDLERTON_INTERFACE_VERSION
Definition: plugin.h:704

◆ mysql_declare_plugin_end

mysql_declare_plugin_end