MySQL 8.0.40
Source Code Documentation
hp_write.cc File Reference
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <sys/types.h>
#include "my_dbug.h"
#include "my_inttypes.h"
#include "storage/heap/heapdef.h"

Macros

#define LOWFIND   1
 
#define LOWUSED   2
 
#define HIGHFIND   4
 
#define HIGHUSED   8
 

Functions

static ucharnext_free_record_pos (HP_SHARE *info)
 
static HASH_INFOhp_find_free_hash (HP_SHARE *info, HP_BLOCK *block, ulong records)
 
int heap_write (HP_INFO *info, const uchar *record)
 
int hp_rb_write_key (HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *record, uchar *recpos)
 
static void set_hash_key (HASH_INFO *key, HASH_INFO *next_key, uchar *ptr_to_rec, ulong hash)
 Populate HASH_INFO structure. More...
 
int hp_write_key (HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *record, uchar *recpos)
 

Macro Definition Documentation

◆ HIGHFIND

#define HIGHFIND   4

◆ HIGHUSED

#define HIGHUSED   8

◆ LOWFIND

#define LOWFIND   1

◆ LOWUSED

#define LOWUSED   2

Function Documentation

◆ heap_write()

int heap_write ( HP_INFO info,
const uchar record 
)

◆ hp_find_free_hash()

static HASH_INFO * hp_find_free_hash ( HP_SHARE info,
HP_BLOCK block,
ulong  records 
)
static

◆ hp_rb_write_key()

int hp_rb_write_key ( HP_INFO info,
HP_KEYDEF keyinfo,
const uchar record,
uchar recpos 
)

◆ hp_write_key()

int hp_write_key ( HP_INFO info,
HP_KEYDEF keyinfo,
const uchar record,
uchar recpos 
)

◆ next_free_record_pos()

static uchar * next_free_record_pos ( HP_SHARE info)
static

◆ set_hash_key()

static void set_hash_key ( HASH_INFO key,
HASH_INFO next_key,
uchar ptr_to_rec,
ulong  hash 
)
inlinestatic

Populate HASH_INFO structure.

Parameters
keyPointer to a HASH_INFO key to be populated
next_keyHASH_INFO next_key value
ptr_to_recHASH_INFO ptr_to_rec value
hashHASH_INFO hash value