MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
innodb_config.c File Reference
#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"
Include dependency graph for innodb_config.c:

Go to the source code of this file.

Functions

void innodb_config_free (meta_cfg_info_t *item)
meta_cfg_info_tinnodb_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_tinnodb_config (const char *name, size_t name_len, hash_table_t **meta_hash)

Variables

option_t config_option_names []

Detailed Description

InnoDB Memcached configurations

Created 04/12/2011 Jimmy Yang

Definition in file innodb_config.c.

Function Documentation

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.

Returns
meta_cfg_info_t* structure if configure option found, otherwise NULL
Parameters
namein: config option name
name_lenin: name length
meta_hashin/out: engine hash table. If NULL, it will be created and initialized

Definition at line 1173 of file innodb_config.c.

Here is the call graph for this function:

void innodb_config_free ( meta_cfg_info_t item)

This function frees meta info structures

Parameters
itemin: 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.

Returns
the default configuration setting (whose mapping name is "default")
Parameters
meta_hashin/out: InnoDB Memcached engine

Definition at line 505 of file innodb_config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.)

Returns
true if everything works out fine
Parameters
infoin: meta info structure

Definition at line 1122 of file innodb_config.c.

Here is the call graph for this function:

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.)

Returns
true if everything works out fine
Parameters
infoin/out: meta info structure
crsrin: crsr
runtimein: verify at the runtime

Definition at line 877 of file innodb_config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

option_t config_option_names[]
Initial value:
{
{OPTION_ID_TBL_MAP_SEP, TABLE_MAP_SEPARATOR, {".", 1}}
}

Configure options enum IDs, their "names" and their default value

Definition at line 38 of file innodb_config.c.