MySQL 8.4.2
Source Code Documentation
mi_open.cc File Reference
#include "my_config.h"
#include <algorithm>
#include <memory>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <time.h>
#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_pointer_arithmetic.h"
#include "mysql/strings/m_ctype.h"
#include "nulls.h"
#include "sql/field.h"
#include "storage/myisam/fulltext.h"
#include "storage/myisam/myisam_sys.h"
#include "storage/myisam/myisamdef.h"
#include "storage/myisam/rt_index.h"
#include "storage/myisam/sp_defs.h"

Macros

#define disk_pos_assert(pos, end_pos)
 

Functions

static void setup_key_functions (MI_KEYDEF *keyinfo)
 
MI_INFOtest_if_reopen (char *filename)
 
MI_INFOmi_open_share (const char *name, MYISAM_SHARE *old_share, int mode, uint open_flags)
 
ucharmi_alloc_rec_buff (MI_INFO *info, ulong length, uchar **buf)
 
ulonglong mi_safe_mul (ulonglong a, ulonglong b)
 
void mi_setup_functions (MYISAM_SHARE *share)
 
uint mi_state_info_write (File file, MI_STATE_INFO *state, uint pWrite)
 
ucharmi_state_info_read (uchar *ptr, MI_STATE_INFO *state)
 
uint mi_state_info_read_dsk (File file, MI_STATE_INFO *state, bool pRead)
 
uint mi_base_info_write (File file, MI_BASE_INFO *base)
 
ucharmy_n_base_info_read (uchar *ptr, MI_BASE_INFO *base)
 
uint mi_keydef_write (File file, MI_KEYDEF *keydef)
 
ucharmi_keydef_read (uchar *ptr, MI_KEYDEF *keydef)
 
int mi_keyseg_write (File file, const HA_KEYSEG *keyseg)
 
ucharmi_keyseg_read (uchar *ptr, HA_KEYSEG *keyseg)
 
uint mi_uniquedef_write (File file, MI_UNIQUEDEF *def)
 
ucharmi_uniquedef_read (uchar *ptr, MI_UNIQUEDEF *def)
 
uint mi_recinfo_write (File file, MI_COLUMNDEF *recinfo)
 
ucharmi_recinfo_read (uchar *ptr, MI_COLUMNDEF *recinfo)
 
int mi_open_datafile (MI_INFO *info, MYISAM_SHARE *share, const char *org_name, File file_to_dup)
 
int mi_open_keyfile (MYISAM_SHARE *share)
 
int mi_disable_indexes (MI_INFO *info)
 
int mi_enable_indexes (MI_INFO *info)
 
int mi_indexes_are_disabled (MI_INFO *info)
 

Macro Definition Documentation

◆ disk_pos_assert

#define disk_pos_assert (   pos,
  end_pos 
)
Value:
if (pos > end_pos) { \
set_my_errno(HA_ERR_CRASHED); \
goto err; \
}
#define HA_ERR_CRASHED
Indexfile is crashed.
Definition: my_base.h:833
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:927

Function Documentation

◆ mi_alloc_rec_buff()

uchar * mi_alloc_rec_buff ( MI_INFO info,
ulong  length,
uchar **  buf 
)

◆ mi_base_info_write()

uint mi_base_info_write ( File  file,
MI_BASE_INFO base 
)

◆ mi_disable_indexes()

int mi_disable_indexes ( MI_INFO info)

◆ mi_enable_indexes()

int mi_enable_indexes ( MI_INFO info)

◆ mi_indexes_are_disabled()

int mi_indexes_are_disabled ( MI_INFO info)

◆ mi_keydef_read()

uchar * mi_keydef_read ( uchar ptr,
MI_KEYDEF keydef 
)

◆ mi_keydef_write()

uint mi_keydef_write ( File  file,
MI_KEYDEF keydef 
)

◆ mi_keyseg_read()

uchar * mi_keyseg_read ( uchar ptr,
HA_KEYSEG keyseg 
)

◆ mi_keyseg_write()

int mi_keyseg_write ( File  file,
const HA_KEYSEG keyseg 
)

◆ mi_open_datafile()

int mi_open_datafile ( MI_INFO info,
MYISAM_SHARE share,
const char *  org_name,
File  file_to_dup 
)

◆ mi_open_keyfile()

int mi_open_keyfile ( MYISAM_SHARE share)

◆ mi_open_share()

MI_INFO * mi_open_share ( const char *  name,
MYISAM_SHARE old_share,
int  mode,
uint  open_flags 
)

◆ mi_recinfo_read()

uchar * mi_recinfo_read ( uchar ptr,
MI_COLUMNDEF recinfo 
)

◆ mi_recinfo_write()

uint mi_recinfo_write ( File  file,
MI_COLUMNDEF recinfo 
)

◆ mi_safe_mul()

ulonglong mi_safe_mul ( ulonglong  a,
ulonglong  b 
)

◆ mi_setup_functions()

void mi_setup_functions ( MYISAM_SHARE share)

◆ mi_state_info_read()

uchar * mi_state_info_read ( uchar ptr,
MI_STATE_INFO state 
)

◆ mi_state_info_read_dsk()

uint mi_state_info_read_dsk ( File  file,
MI_STATE_INFO state,
bool  pRead 
)

◆ mi_state_info_write()

uint mi_state_info_write ( File  file,
MI_STATE_INFO state,
uint  pWrite 
)

◆ mi_uniquedef_read()

uchar * mi_uniquedef_read ( uchar ptr,
MI_UNIQUEDEF def 
)

◆ mi_uniquedef_write()

uint mi_uniquedef_write ( File  file,
MI_UNIQUEDEF def 
)

◆ my_n_base_info_read()

uchar * my_n_base_info_read ( uchar ptr,
MI_BASE_INFO base 
)

◆ setup_key_functions()

static void setup_key_functions ( MI_KEYDEF keyinfo)
static

◆ test_if_reopen()

MI_INFO * test_if_reopen ( char *  filename)