InnoDB Plugin  1.0
Functions
row0import.h File Reference
#include "univ.i"
#include "db0err.h"
#include "dict0types.h"
#include "row0import.ic"
Include dependency graph for row0import.h:

Go to the source code of this file.

Functions

UNIV_INTERN dberr_t row_import_for_mysql (dict_table_t *table, row_prebuilt_t *prebuilt))
UNIV_INTERN dberr_t row_import_update_discarded_flag (trx_t *trx, table_id_t table_id, bool discarded, bool dict_locked))
UNIV_INTERN dberr_t row_import_update_index_root (trx_t *trx, const dict_table_t *table, bool reset, bool dict_locked))

Detailed Description

Header file for import tablespace functions.

Created 2012-02-08 by Sunny Bains

Function Documentation

UNIV_INTERN dberr_t row_import_for_mysql ( dict_table_t table,
row_prebuilt_t prebuilt 
)

Imports a tablespace. The space id in the .ibd file must match the space id of the table in the data dictionary.

Returns
error code or DB_SUCCESS
Parameters
tablein/out: table
prebuiltin: prebuilt struct in MySQL
UNIV_INTERN dberr_t row_import_update_discarded_flag ( trx_t trx,
table_id_t  table_id,
bool  discarded,
bool  dict_locked 
)

Update the DICT_TF2_DISCARDED flag in SYS_TABLES.

Returns
DB_SUCCESS or error code.
Parameters
trxin/out: transaction that covers the update
table_idin: Table for which we want to set the root table->flags2
discardedin: set MIX_LEN column bit to discarded, if true
dict_lockedin: Set to true if the caller already owns the dict_sys_t:: mutex.
UNIV_INTERN dberr_t row_import_update_index_root ( trx_t trx,
const dict_table_t table,
bool  reset,
bool  dict_locked 
)

Update the (space, root page) of a table's indexes from the values in the data dictionary.

Returns
DB_SUCCESS or error code
Parameters
trxin/out: transaction that covers the update
tablein: Table for which we want to set the root page_no
resetin: if true then set to FIL_NUL
dict_lockedin: Set to true if the caller already owns the dict_sys_t:: mutex.