MySQL  8.0.21
Source Code Documentation
test_services_threaded.cc File Reference
#include <fcntl.h>
#include <mysql/plugin.h>
#include <mysql_version.h>
#include <stdlib.h>
#include <mysql/components/my_service.h>
#include <mysql/components/services/log_builtins.h>
#include <mysqld_error.h>
#include "m_string.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_sys.h"
#include "sql/sql_plugin.h"

Classes

struct  test_services_context
 

Macros

#define LOG_COMPONENT_TAG   "test_services_threaded"
 
#define STRING_BUFFER   256
 

Enumerations

enum  t_test_status { BUSY = 0, READY = 1, BUSY = 0, READY = 1 }
 

Functions

static MYSQL_SYSVAR_INT (with_log_message, with_log_message_val, PLUGIN_VAR_RQCMDARG, "Switch on/off test of log message service", nullptr, nullptr, 1, 0, 1, 0)
 
static int test_log_plugin_error ()
 
static void * test_services (void *p)
 
static int test_services_plugin_init (void *p)
 
static int test_services_plugin_deinit (void *p)
 
 mysql_declare_plugin (test_daemon)
 

Variables

static const mysql_service_registry_treg_srv = nullptr
 
const mysql_service_log_builtins_tlog_bi = nullptr
 accessor built-ins More...
 
const mysql_service_log_builtins_string_tlog_bs = nullptr
 string built-ins More...
 
File outfile
 
static t_test_status test_status
 
static SHOW_VAR test_services_status []
 
static int with_log_message_val = 0
 
static SYS_VARtest_services_sysvars []
 
struct st_mysql_daemon test_services_plugin = {MYSQL_DAEMON_INTERFACE_VERSION}
 
 mysql_declare_plugin_end
 

Macro Definition Documentation

◆ LOG_COMPONENT_TAG

#define LOG_COMPONENT_TAG   "test_services_threaded"

◆ STRING_BUFFER

#define STRING_BUFFER   256

Enumeration Type Documentation

◆ t_test_status

Enumerator
BUSY 
READY 
BUSY 
READY 

Function Documentation

◆ mysql_declare_plugin()

mysql_declare_plugin ( test_daemon  )

◆ MYSQL_SYSVAR_INT()

static MYSQL_SYSVAR_INT ( with_log_message  ,
with_log_message_val  ,
PLUGIN_VAR_RQCMDARG  ,
"Switch on/off test of log message service"  ,
nullptr  ,
nullptr  ,
,
,
,
 
)
static

◆ test_log_plugin_error()

static int test_log_plugin_error ( )
static

◆ test_services()

static void* test_services ( void *  p)
static

◆ test_services_plugin_deinit()

static int test_services_plugin_deinit ( void *  p)
static

◆ test_services_plugin_init()

static int test_services_plugin_init ( void *  p)
static

Variable Documentation

◆ log_bi

accessor built-ins

accessor built-ins

◆ log_bs

string built-ins

◆ mysql_declare_plugin_end

mysql_declare_plugin_end

◆ outfile

File outfile

◆ reg_srv

const mysql_service_registry_t* reg_srv = nullptr
static

◆ test_services_plugin

struct st_mysql_daemon test_services_plugin = {MYSQL_DAEMON_INTERFACE_VERSION}

◆ test_services_status

SHOW_VAR test_services_status[]
static
Initial value:
= {
{"test_services_status", (char *)&test_status, SHOW_INT, SHOW_SCOPE_GLOBAL},
{nullptr, nullptr, SHOW_UNDEF, SHOW_SCOPE_GLOBAL}}
static t_test_status test_status
Definition: test_services_threaded.cc:55
shown as unsigned int
Definition: status_var.h:32
Definition: status_var.h:30
Definition: status_var.h:69

◆ test_services_sysvars

SYS_VAR* test_services_sysvars[]
static
Initial value:
= {MYSQL_SYSVAR(with_log_message),
nullptr}
#define MYSQL_SYSVAR(name)
Definition: plugin.h:281

◆ test_status

t_test_status test_status
static

◆ with_log_message_val

int with_log_message_val = 0
static