MySQL 5.6.14 Source Code Document
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "innodb_api.h"
#include "innodb_config.h"
#include "innodb_cb_api.h"
#include "innodb_utility.h"
Go to the source code of this file.
Functions | |
void | innodb_config_free (meta_cfg_info_t *item) |
meta_cfg_info_t * | innodb_config_meta_hash_init (hash_table_t *meta_hash) |
ib_err_t | innodb_verify_low (meta_cfg_info_t *info, ib_crsr_t crsr, bool runtime) |
bool | innodb_verify (meta_cfg_info_t *info) |
meta_cfg_info_t * | innodb_config (const char *name, size_t name_len, hash_table_t **meta_hash) |
Variables | |
option_t | config_option_names [] |
meta_cfg_info_t* innodb_config | ( | const char * | name, |
size_t | name_len, | ||
hash_table_t ** | meta_hash | ||
) |
If the hash table (meta_hash) is NULL, then initialise the hash table with data in the configure tables. And return the "default" item. If there is no setting named "default" then use the first row in the table. This is currently only used at the engine initialization time. If the hash table (meta_hash) is created, then look for the meta-data based on specified configuration name parameter. If such metadata does not exist in the hash table, then add such metadata into hash table.
name | in: config option name |
name_len | in: name length |
meta_hash | in/out: engine hash table. If NULL, it will be created and initialized |
Definition at line 1173 of file innodb_config.c.
void innodb_config_free | ( | meta_cfg_info_t * | item | ) |
This function frees meta info structures
item | in: meta info structure |
Definition at line 68 of file innodb_config.c.
meta_cfg_info_t* innodb_config_meta_hash_init | ( | hash_table_t * | meta_hash | ) |
This function opens the "containers" table, reads in all rows and instantiates the metadata hash table.
meta_hash | in/out: InnoDB Memcached engine |
Definition at line 505 of file innodb_config.c.
bool innodb_verify | ( | meta_cfg_info_t * | info | ) |
This function verifies the table configuration information, and fills in columns used for memcached functionalities (cas, exp etc.)
info | in: meta info structure |
Definition at line 1122 of file innodb_config.c.
ib_err_t innodb_verify_low | ( | meta_cfg_info_t * | info, |
ib_crsr_t | crsr, | ||
bool | runtime | ||
) |
This function verifies the table configuration information on an opened table, and fills in columns used for memcached functionalities (cas, exp etc.)
info | in/out: meta info structure |
crsr | in: crsr |
runtime | in: verify at the runtime |
Definition at line 877 of file innodb_config.c.
option_t config_option_names[] |
Configure options enum IDs, their "names" and their default value
Definition at line 38 of file innodb_config.c.