MySQL 9.0.0
Source Code Documentation
|
Key cache variable structures. More...
#include <stddef.h>
#include <sys/types.h>
#include <string_view>
#include "my_inttypes.h"
#include "my_io.h"
#include "my_macros.h"
#include "my_sys.h"
#include "mysql/psi/mysql_cond.h"
#include "mysql/psi/mysql_mutex.h"
Go to the source code of this file.
Classes | |
struct | st_keycache_thread_var |
struct | KEYCACHE_WQUEUE |
struct | KEY_CACHE |
Macros | |
#define | KEY_CACHE_SIZE (uint)(8 * 1024 * 1024) |
#define | KEY_CACHE_BLOCK_SIZE (uint)1024 |
#define | CHANGED_BLOCKS_HASH 128 /* must be power of 2 */ |
Functions | |
int | init_key_cache (KEY_CACHE *keycache, ulonglong key_cache_block_size, size_t use_mem, ulonglong division_limit, ulonglong age_threshold) |
int | resize_key_cache (KEY_CACHE *keycache, st_keycache_thread_var *thread_var, ulonglong key_cache_block_size, size_t use_mem, ulonglong division_limit, ulonglong age_threshold) |
uchar * | key_cache_read (KEY_CACHE *keycache, st_keycache_thread_var *thread_var, 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, st_keycache_thread_var *thread_var, File file, my_off_t filepos, int level, uchar *buff, uint length) |
int | key_cache_write (KEY_CACHE *keycache, st_keycache_thread_var *thread_var, File file, my_off_t filepos, int level, uchar *buff, uint length, uint block_length, int force_write) |
int | flush_key_blocks (KEY_CACHE *keycache, st_keycache_thread_var *thread_var, int file, enum flush_type type) |
void | end_key_cache (KEY_CACHE *keycache, bool cleanup) |
bool | multi_keycache_init (void) |
void | multi_keycache_free (void) |
KEY_CACHE * | multi_key_cache_search (uchar *key, uint length) |
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 (std::string_view name, KEY_CACHE *key_cache) |
Variables | |
KEY_CACHE | dflt_key_cache_var |
KEY_CACHE * | dflt_key_cache |
Key cache variable structures.
#define CHANGED_BLOCKS_HASH 128 /* must be power of 2 */ |
#define KEY_CACHE_BLOCK_SIZE (uint)1024 |
#define KEY_CACHE_SIZE (uint)(8 * 1024 * 1024) |
void end_key_cache | ( | KEY_CACHE * | keycache, |
bool | cleanup | ||
) |
int flush_key_blocks | ( | KEY_CACHE * | keycache, |
st_keycache_thread_var * | thread_var, | ||
int | file, | ||
enum flush_type | type | ||
) |
int init_key_cache | ( | KEY_CACHE * | keycache, |
ulonglong | key_cache_block_size, | ||
size_t | use_mem, | ||
ulonglong | division_limit, | ||
ulonglong | age_threshold | ||
) |
int key_cache_insert | ( | KEY_CACHE * | keycache, |
st_keycache_thread_var * | thread_var, | ||
File | file, | ||
my_off_t | filepos, | ||
int | level, | ||
uchar * | buff, | ||
uint | length | ||
) |
uchar * key_cache_read | ( | KEY_CACHE * | keycache, |
st_keycache_thread_var * | thread_var, | ||
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, |
st_keycache_thread_var * | thread_var, | ||
File | file, | ||
my_off_t | filepos, | ||
int | level, | ||
uchar * | buff, | ||
uint | length, | ||
uint | block_length, | ||
int | force_write | ||
) |
void multi_keycache_free | ( | void | ) |
bool multi_keycache_init | ( | void | ) |
int reset_key_cache_counters | ( | std::string_view | name, |
KEY_CACHE * | key_cache | ||
) |
int resize_key_cache | ( | KEY_CACHE * | keycache, |
st_keycache_thread_var * | thread_var, | ||
ulonglong | key_cache_block_size, | ||
size_t | use_mem, | ||
ulonglong | division_limit, | ||
ulonglong | age_threshold | ||
) |
KEY_CACHE * dflt_key_cache |
|
extern |