MySQL  8.0.17
Source Code Documentation
mi_test3.cc File Reference
#include <sys/types.h>
#include "my_byteorder.h"
#include "myisam.h"
#include "mi_extrafunc.h"

Classes

struct  record
 

Macros

#define WEXITSTATUS(stat_val)   ((unsigned)(stat_val) >> 8)
 
#define WIFEXITED(stat_val)   (((stat_val)&255) == 0)
 
#define rnd(X)   (random() % X)
 
#define rnd_init(X)   srandom(X)
 

Functions

static void get_options (int argc, char *argv[])
 
void start_test (int id)
 
int test_read (MI_INFO *, int)
 
int test_write (MI_INFO *, int, int)
 
int test_update (MI_INFO *, int, int)
 
int test_rrnd (MI_INFO *, int)
 
int main (int argc, char **argv)
 
static void get_options (int argc, char **argv)
 

Variables

const char * filename = "test3"
 
uint tests = 10
 
uint forks = 10
 
uint key_cacheing = 0
 
uint use_log = 0
 
struct record record
 

Macro Definition Documentation

◆ rnd

#define rnd (   X)    (random() % X)

◆ rnd_init

#define rnd_init (   X)    srandom(X)

◆ WEXITSTATUS

#define WEXITSTATUS (   stat_val)    ((unsigned)(stat_val) >> 8)

◆ WIFEXITED

#define WIFEXITED (   stat_val)    (((stat_val)&255) == 0)

Function Documentation

◆ get_options() [1/2]

static void get_options ( int  argc,
char *  argv[] 
)
static

◆ get_options() [2/2]

static void get_options ( int  argc,
char **  argv 
)
static

◆ main()

int main ( int  argc,
char **  argv 
)

◆ start_test()

void start_test ( int  id)

◆ test_read()

int test_read ( MI_INFO file,
int  id 
)

◆ test_rrnd()

int test_rrnd ( MI_INFO file,
int  id 
)

◆ test_update()

int test_update ( MI_INFO file,
int  id,
int  lock_type 
)

◆ test_write()

int test_write ( MI_INFO file,
int  id,
int  lock_type 
)

Variable Documentation

◆ filename

const char* filename = "test3"

◆ forks

uint forks = 10

◆ key_cacheing

uint key_cacheing = 0

◆ record

struct record record

◆ tests

uint tests = 10

◆ use_log

uint use_log = 0