MySQL  8.0.19
Source Code Documentation
row0import.h File Reference
#include "dict0types.h"
#include "univ.i"
#include "row0import.ic"

Go to the source code of this file.

Functions

dberr_t row_import_for_mysql (dict_table_t *table, dd::Table *table_def, row_prebuilt_t *prebuilt)
 Imports a tablespace. More...
 
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. More...
 

Detailed Description

Header file for import tablespace functions.

Created 2012-02-08 by Sunny Bains

Function Documentation

◆ row_import_for_mysql()

dberr_t row_import_for_mysql ( dict_table_t table,
dd::Table table_def,
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.

Parameters
[in]tabletable
[in]table_defdd table
[in]prebuiltprebuilt struct in MySQL
Returns
error code or DB_SUCCESS

◆ row_import_update_discarded_flag()

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.