MySQL 8.4.3
Source Code Documentation
|
#include "my_config.h"
#include <ctype.h>
#include <fcntl.h>
#include <mysqld_error.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#include "client/include/caching_sha2_passwordopt-vars.h"
#include "client/include/sslopt-vars.h"
#include "my_dir.h"
#include <sys/wait.h>
#include <sys/time.h>
#include <stdio.h>
#include "client/include/client_priv.h"
#include "compression.h"
#include "m_string.h"
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_default.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_systime.h"
#include "mysql/service_mysql_alloc.h"
#include "nulls.h"
#include "print_version.h"
#include "thr_cond.h"
#include "typelib.h"
#include "welcome_copyright_notice.h"
#include "client/include/multi_factor_passwordopt-vars.h"
#include "client/include/multi_factor_passwordopt-longopts.h"
#include "client/include/caching_sha2_passwordopt-longopts.h"
#include "client/include/sslopt-longopts.h"
#include "client/include/sslopt-case.h"
Classes | |
struct | statement |
struct | option_string |
struct | stats |
struct | thread_context |
struct | conclusions |
Macros | |
#define | HUGE_STRING_LENGTH 8196 |
#define | RAND_STRING_SIZE 126 |
#define | SELECT_TYPE 0 |
#define | UPDATE_TYPE 1 |
#define | INSERT_TYPE 2 |
#define | UPDATE_TYPE_REQUIRES_PREFIX 3 |
#define | CREATE_TABLE_TYPE 4 |
#define | SELECT_TYPE_REQUIRES_PREFIX 5 |
#define | DELETE_TYPE_REQUIRES_PREFIX 6 |
#define | RANDOM_FORMAT "%ld" |
#define | ALPHANUMERICS_SIZE (sizeof(ALPHANUMERICS) - 1) |
Typedefs | |
typedef struct statement | statement |
typedef struct option_string | option_string |
typedef struct stats | stats |
typedef struct thread_context | thread_context |
typedef struct conclusions | conclusions |
Functions | |
static int | get_options (int *argc, char ***argv) |
void | print_conclusions (conclusions *con) |
void | print_conclusions_csv (conclusions *con) |
void | generate_stats (conclusions *con, option_string *eng, stats *sptr) |
uint | parse_comma (const char *string, uint **range) |
uint | parse_delimiter (const char *script, statement **stmt, char delm) |
int | parse_option (const char *origin, option_string **stmt, char delm) |
static int | drop_schema (MYSQL *mysql, const char *db) |
size_t | get_random_string (char *buf) |
static statement * | build_table_string (void) |
static statement * | build_insert_string (void) |
static statement * | build_update_string (void) |
static statement * | build_select_string (bool key) |
static int | generate_primary_key_list (MYSQL *mysql, option_string *engine_stmt) |
static int | drop_primary_key_list (void) |
static int | create_schema (MYSQL *mysql, const char *db, statement *stmt, option_string *engine_stmt) |
static void | set_sql_mode (MYSQL *mysql) |
static int | run_scheduler (stats *sptr, statement *stmts, uint concur, ulonglong limit) |
void * | run_task (void *p) |
void | statement_cleanup (statement *stmt) |
void | option_cleanup (option_string *stmt) |
void | concurrency_loop (MYSQL *mysql, uint current, option_string *eptr) |
static int | run_statements (MYSQL *mysql, statement *stmt) |
int | slap_connect (MYSQL *mysql) |
static int | run_query (MYSQL *mysql, const char *query, size_t len) |
static long int | timedif (struct timeval a, struct timeval b) |
int | main (int argc, char **argv) |
static void | usage (void) |
static bool | get_one_option (int optid, const struct my_option *opt, char *argument) |
#define ALPHANUMERICS_SIZE (sizeof(ALPHANUMERICS) - 1) |
#define CREATE_TABLE_TYPE 4 |
#define DELETE_TYPE_REQUIRES_PREFIX 6 |
#define HUGE_STRING_LENGTH 8196 |
#define INSERT_TYPE 2 |
#define RAND_STRING_SIZE 126 |
#define RANDOM_FORMAT "%ld" |
#define SELECT_TYPE 0 |
#define SELECT_TYPE_REQUIRES_PREFIX 5 |
#define UPDATE_TYPE 1 |
#define UPDATE_TYPE_REQUIRES_PREFIX 3 |
typedef struct conclusions conclusions |
typedef struct option_string option_string |
typedef struct thread_context thread_context |
|
static |
|
static |
|
static |
|
static |
void concurrency_loop | ( | MYSQL * | mysql, |
uint | current, | ||
option_string * | eptr | ||
) |
|
static |
|
static |
|
static |
|
static |
void generate_stats | ( | conclusions * | con, |
option_string * | eng, | ||
stats * | sptr | ||
) |
|
static |
|
static |
size_t get_random_string | ( | char * | buf | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
void option_cleanup | ( | option_string * | stmt | ) |
uint parse_comma | ( | const char * | string, |
uint ** | range | ||
) |
uint parse_delimiter | ( | const char * | script, |
statement ** | stmt, | ||
char | delm | ||
) |
int parse_option | ( | const char * | origin, |
option_string ** | stmt, | ||
char | delm | ||
) |
void print_conclusions | ( | conclusions * | con | ) |
void print_conclusions_csv | ( | conclusions * | con | ) |
|
static |
void * run_task | ( | void * | p | ) |
|
static |
int slap_connect | ( | MYSQL * | mysql | ) |
void statement_cleanup | ( | statement * | stmt | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const char* auto_generate_sql_type = "mixed" |
|
static |
|
static |
|
static |
uint* concurrency |
const char* concurrency_str = nullptr |
|
static |
native_cond_t count_threshold |
native_mutex_t counter_mutex |
const char* create_schema_string = "mysqlslap" |
|
static |
File csv_file |
|
static |
|
static |
|
static |
const char* default_dbug_option = "d:t:o,/tmp/mysqlslap.trace" |
|
static |
const char* delimiter = "\n" |
|
static |
|
static |
|
static |
|
static |
|
static |
uint master_wakeup |
|
static |
|
static |
|
static |
|
static |
const char* num_char_cols_opt |
|
static |
|
static |
const char* num_int_cols_opt |
|
static |
|
static |
|
static |
const char* opt_csv_str |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
char** primary_keys |
unsigned long long primary_keys_number_of |
native_cond_t sleep_threshold |
native_mutex_t sleeper_mutex |
|
static |
uint thread_counter |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |