MySQL 9.1.0
Source Code Documentation
|
Quiesce a tablespace. More...
#include <errno.h>
#include <my_aes.h>
#include "dd/cache/dictionary_client.h"
#include "sql/dd/dictionary.h"
#include "sql/dd/types/column_type_element.h"
#include "dict0dd.h"
#include "fsp0sysspace.h"
#include "ha_prototypes.h"
#include "ibuf0ibuf.h"
#include "row0mysql.h"
#include "row0quiesce.h"
#include "srv0start.h"
#include "trx0purge.h"
#include "my_dbug.h"
Functions | |
static dberr_t | row_quiesce_write_index_fields (const dict_index_t *index, FILE *file, THD *thd) |
Write the meta data (index user fields) config file. More... | |
static dberr_t | row_quiesce_write_one_index (const dict_index_t *index, FILE *file, THD *thd) |
Write the meta data config file index information. More... | |
static dberr_t | row_quiesce_write_indexes (const dict_table_t *table, FILE *file, THD *thd) |
Write the meta data config file index information. More... | |
static dberr_t | row_quiesce_write_dropped_col_metadata (const dict_col_t *col, const char *col_name, FILE *file, const dict_table_t *dict_table, THD *thd) |
Write the metadata (table columns) config file. More... | |
static dberr_t | row_quiesce_write_default_value (const dict_col_t *col, FILE *file) |
Write the metadata (table columns) config file. More... | |
static dberr_t | row_quiesce_write_table (const dict_table_t *table, FILE *file, THD *thd) |
Write the meta data (table columns) config file. More... | |
static dberr_t | row_quiesce_write_header (const dict_table_t *table, FILE *file, THD *thd) |
Write the meta data config file header. More... | |
static dberr_t | row_quiesce_write_cfg (dict_table_t *table, THD *thd) |
Write the table meta data after quiesce. More... | |
static dberr_t | row_quiesce_write_transfer_key (const Encryption_metadata &encryption_metadata, FILE *file, THD *thd) |
Write the transfer key to CFP file. More... | |
static dberr_t | row_quiesce_write_cfp (dict_table_t *table, THD *thd) |
Write the encryption data after quiesce. More... | |
static bool | row_quiesce_table_has_fts_index (const dict_table_t *table) |
Check whether a table has an FTS index defined on it. More... | |
void | row_quiesce_table_start (dict_table_t *table, trx_t *trx) |
Quiesce the tablespace that the table resides in. More... | |
void | row_quiesce_table_complete (dict_table_t *table, trx_t *trx) |
Cleanup after table quiesce. More... | |
dberr_t | row_quiesce_set_state (dict_table_t *table, ib_quiesce_t state, trx_t *trx) |
Set a table's quiesce state. More... | |
Quiesce a tablespace.
Created 2012-02-08 by Sunny Bains.
dberr_t row_quiesce_set_state | ( | dict_table_t * | table, |
ib_quiesce_t | state, | ||
trx_t * | trx | ||
) |
Set a table's quiesce state.
table | in: quiesce this table |
state | in: quiesce state to set |
trx | in/out: transaction |
void row_quiesce_table_complete | ( | dict_table_t * | table, |
trx_t * | trx | ||
) |
Cleanup after table quiesce.
[in] | table | Quiesce this table |
[in,out] | trx | Transaction/session |
|
static |
Check whether a table has an FTS index defined on it.
table | in: quiesce this table |
void row_quiesce_table_start | ( | dict_table_t * | table, |
trx_t * | trx | ||
) |
Quiesce the tablespace that the table resides in.
[in] | table | Quiesce this table |
[in,out] | trx | Transaction/session |
|
static |
Write the table meta data after quiesce.
table | in: write the meta data for this table |
thd | in/out: session |
|
static |
Write the encryption data after quiesce.
[in] | table | write the data for this table |
[in] | thd | session |
|
static |
Write the metadata (table columns) config file.
Serialise the contents of dict_col_t default value part if exists.
[in] | col | column to which the default value belongs |
[in] | file | file to write to |
|
static |
Write the metadata (table columns) config file.
Serialise the contents of dict_col_t default value part if exists.
[in] | col | column to which the default value belongs |
[in] | col_name | column name |
[in,out] | file | file to write to |
[in] | dict_table | InnoDB table cache |
[in] | thd | THD |
|
static |
Write the meta data config file header.
[in] | table | write the meta data for this table |
[in] | file | file to write to |
[in,out] | thd | session |
|
static |
Write the meta data (index user fields) config file.
index | in: write the meta data for this index |
file | in: file to write to |
thd | in/out: session |
|
static |
Write the meta data config file index information.
table | in: write the meta data for this table |
file | in: file to write to |
thd | in/out: session |
|
static |
Write the meta data config file index information.
[in] | index | write metadata for this index |
[in,out] | file | file to write to |
[in,out] | thd | session |
|
static |
Write the meta data (table columns) config file.
Serialise the contents of dict_col_t structure, along with the column name. All fields are serialized as uint32_t.
table | in: write the meta data for this table |
file | in: file to write to |
thd | in/out: session |
|
static |
Write the transfer key to CFP file.
[in] | encryption_metadata | the encryption key and iv to store in file |
[in] | file | file to write to |
[in] | thd | session |