CMGDK r49-rc2
组合类型 | 宏定义 | 类型定义 | 函数 | 变量
K:/CMGDKv18/SDK/Source/SQL/MySQL/include/keycache.h文件参考

浏览该文件的源代码。

组合类型

struct  st_keycache_wqueue
struct  st_key_cache

宏定义

#define CHANGED_BLOCKS_HASH   128

类型定义

typedef struct st_block_link BLOCK_LINK
typedef struct st_keycache_page KEYCACHE_PAGE
typedef struct st_hash_link HASH_LINK
typedef struct st_keycache_wqueue KEYCACHE_WQUEUE
typedef int(* KEYCACHE_POST_WRITE_CALLBACK )(void *arg, const uchar *buffert, uint length, my_off_t filepos)
typedef struct st_key_cache KEY_CACHE

函数

int init_key_cache (KEY_CACHE *keycache, uint key_cache_block_size, size_t use_mem, uint division_limit, uint age_threshold)
int resize_key_cache (KEY_CACHE *keycache, uint key_cache_block_size, size_t use_mem, uint division_limit, uint age_threshold)
void change_key_cache_param (KEY_CACHE *keycache, uint division_limit, uint age_threshold)
ucharkey_cache_read (KEY_CACHE *keycache, File file, my_off_t filepos, int level, uchar *buff, uint length, uint block_length, int return_buffer)
int key_cache_insert (KEY_CACHE *keycache, File file, my_off_t filepos, int level, uchar *buff, uint length)
int key_cache_write (KEY_CACHE *keycache, File file, my_off_t filepos, int level, uchar *buff, uint length, uint block_length, int force_write, void *post_write_arg)
int flush_key_blocks (KEY_CACHE *keycache, int file, enum flush_type type)
void end_key_cache (KEY_CACHE *keycache, my_bool cleanup)
my_bool multi_keycache_init (void)
void multi_keycache_free (void)
KEY_CACHEmulti_key_cache_search (uchar *key, uint length, KEY_CACHE *def)
my_bool multi_key_cache_set (const uchar *key, uint length, KEY_CACHE *key_cache)
void multi_key_cache_change (KEY_CACHE *old_data, KEY_CACHE *new_data)
int reset_key_cache_counters (const char *name, KEY_CACHE *key_cache)

变量

KEY_CACHE dflt_key_cache_var
KEY_CACHEdflt_key_cache

详细描述

Key cache API


宏定义文档

#define CHANGED_BLOCKS_HASH   128

类型定义文档

typedef struct st_block_link BLOCK_LINK
typedef struct st_hash_link HASH_LINK
typedef struct st_key_cache KEY_CACHE
typedef struct st_keycache_page KEYCACHE_PAGE
typedef int(* KEYCACHE_POST_WRITE_CALLBACK)(void *arg, const uchar *buffert, uint length, my_off_t filepos)

Callback called when any block is flushed


函数文档

void change_key_cache_param ( KEY_CACHE keycache,
uint  division_limit,
uint  age_threshold 
)
void end_key_cache ( KEY_CACHE keycache,
my_bool  cleanup 
)
int flush_key_blocks ( KEY_CACHE keycache,
int  file,
enum flush_type  type 
)
int init_key_cache ( KEY_CACHE keycache,
uint  key_cache_block_size,
size_t  use_mem,
uint  division_limit,
uint  age_threshold 
)
int key_cache_insert ( KEY_CACHE keycache,
File  file,
my_off_t  filepos,
int  level,
uchar buff,
uint  length 
)
uchar* key_cache_read ( KEY_CACHE keycache,
File  file,
my_off_t  filepos,
int  level,
uchar buff,
uint  length,
uint  block_length,
int  return_buffer 
)
int key_cache_write ( KEY_CACHE keycache,
File  file,
my_off_t  filepos,
int  level,
uchar buff,
uint  length,
uint  block_length,
int  force_write,
void *  post_write_arg 
)
void multi_key_cache_change ( KEY_CACHE old_data,
KEY_CACHE new_data 
)
KEY_CACHE* multi_key_cache_search ( uchar key,
uint  length,
KEY_CACHE def 
)
my_bool multi_key_cache_set ( const uchar key,
uint  length,
KEY_CACHE key_cache 
)
void multi_keycache_free ( void  )
my_bool multi_keycache_init ( void  )
int reset_key_cache_counters ( const char *  name,
KEY_CACHE key_cache 
)
int resize_key_cache ( KEY_CACHE keycache,
uint  key_cache_block_size,
size_t  use_mem,
uint  division_limit,
uint  age_threshold 
)

变量文档

 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义