MySQL 9.0.0
Source Code Documentation
myisamlog.cc File Reference
#include "my_config.h"
#include <fcntl.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#include <algorithm>
#include "m_string.h"
#include "my_byteorder.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_macros.h"
#include "my_tree.h"
#include "mysql/strings/int2str.h"
#include "nulls.h"
#include "print_version.h"
#include "storage/myisam/myisamdef.h"
#include "welcome_copyright_notice.h"
#include <sys/resource.h>
#include "storage/myisam/mi_extrafunc.h"

Classes

struct  file_info
 
struct  test_if_open_param
 
struct  st_access_param
 

Macros

#define FILENAME(A)   (A ? A->show_name : "Unknown")
 
#define NO_FILEPOS   (ulong) ~0L
 

Functions

int main (int argc, char **argv)
 
static void get_options (int *argc, char ***argv)
 
static int examine_log (const char *file_name, char **table_names)
 
static int read_string (IO_CACHE *file, uchar **to, uint length)
 
static int file_info_compare (const void *cmp_arg, const void *a, const void *b)
 
static int test_if_open (void *key, element_count count, void *param)
 
static void fix_blob_pointers (MI_INFO *isam, uchar *record)
 
static int test_when_accessed (void *key, element_count count, void *access_param)
 
static void file_info_free (void *info, TREE_FREE mode, const void *)
 
static int close_some_file (TREE *tree)
 
static int reopen_closed_file (TREE *tree, struct file_info *file_info)
 
static int find_record_with_key (struct file_info *file_info, uchar *record)
 
static void printf_log (const char *str,...)
 
static bool cmp_filename (struct file_info *file_info, const char *name)
 
st_keycache_thread_varkeycache_thread_var ()
 

Variables

static uint verbose = 0
 
static uint update = 0
 
static uint test_info = 0
 
static uint max_files = 0
 
static uint re_open_count = 0
 
static uint recover = 0
 
static uint prefix_remove = 0
 
static uint opt_processes = 0
 
static const char * log_filename = nullptr
 
static const char * filepath = nullptr
 
static const char * write_filename = nullptr
 
static const char * record_pos_file = nullptr
 
static ulong com_count [10][3]
 
static ulong number_of_commands = (ulong)~0L
 
static ulong isamlog_process
 
static my_off_t isamlog_filepos
 
static my_off_t start_offset = 0
 
static my_off_t record_pos = HA_OFFSET_ERROR
 
static const char * command_name []
 

Macro Definition Documentation

◆ FILENAME

#define FILENAME (   A)    (A ? A->show_name : "Unknown")

◆ NO_FILEPOS

#define NO_FILEPOS   (ulong) ~0L

Function Documentation

◆ close_some_file()

static int close_some_file ( TREE tree)
static

◆ cmp_filename()

static bool cmp_filename ( struct file_info file_info,
const char *  name 
)
static

◆ examine_log()

static int examine_log ( const char *  file_name,
char **  table_names 
)
static

◆ file_info_compare()

static int file_info_compare ( const void *  cmp_arg,
const void *  a,
const void *  b 
)
static

◆ file_info_free()

static void file_info_free ( void *  info,
TREE_FREE  mode,
const void *   
)
static

◆ find_record_with_key()

static int find_record_with_key ( struct file_info file_info,
uchar record 
)
static

◆ fix_blob_pointers()

static void fix_blob_pointers ( MI_INFO isam,
uchar record 
)
static

◆ get_options()

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

◆ keycache_thread_var()

st_keycache_thread_var * keycache_thread_var ( )

◆ main()

int main ( int  argc,
char **  argv 
)

◆ printf_log()

static void printf_log ( const char *  str,
  ... 
)
static

◆ read_string()

static int read_string ( IO_CACHE file,
uchar **  to,
uint  length 
)
static

◆ reopen_closed_file()

static int reopen_closed_file ( TREE tree,
struct file_info file_info 
)
static

◆ test_if_open()

static int test_if_open ( void *  key,
element_count  count,
void *  param 
)
static

◆ test_when_accessed()

static int test_when_accessed ( void *  key,
element_count  count,
void *  access_param 
)
static

Variable Documentation

◆ com_count

ulong com_count[10][3]
static

◆ command_name

const char* command_name[]
static
Initial value:
= {"open", "write", "update", "delete",
"close", "extra", "lock", "re-open",
"delete-all", NullS}
#define NullS
Definition of the null string (a null pointer of type char *), used in some of our string handling co...
Definition: nulls.h:33

◆ filepath

const char * filepath = nullptr
static

◆ isamlog_filepos

my_off_t isamlog_filepos
static

◆ isamlog_process

ulong isamlog_process
static

◆ log_filename

const char* log_filename = nullptr
static

◆ max_files

uint max_files = 0
static

◆ number_of_commands

ulong number_of_commands = (ulong)~0L
static

◆ opt_processes

uint opt_processes = 0
static

◆ prefix_remove

uint prefix_remove = 0
static

◆ re_open_count

uint re_open_count = 0
static

◆ record_pos

my_off_t record_pos = HA_OFFSET_ERROR
static

◆ record_pos_file

const char* record_pos_file = nullptr
static

◆ recover

uint recover = 0
static

◆ start_offset

my_off_t start_offset = 0
static

◆ test_info

uint test_info = 0
static

◆ update

uint update = 0
static

◆ verbose

uint verbose = 0
static

◆ write_filename

const char * write_filename = nullptr
static