MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
row0import.cc File Reference
#include "row0import.h"
#include "btr0pcur.h"
#include "que0que.h"
#include "dict0boot.h"
#include "ibuf0ibuf.h"
#include "pars0pars.h"
#include "row0upd.h"
#include "row0sel.h"
#include "row0mysql.h"
#include "srv0start.h"
#include "row0quiesce.h"
#include <vector>
Include dependency graph for row0import.cc:

Go to the source code of this file.

Classes

struct  row_stats_t
struct  row_index_t
struct  row_import
class  RecIterator
class  IndexPurge
class  AbstractCallback
struct  FetchIndexRootPages
struct  FetchIndexRootPages::Index
class  PageConverter

Macros

#define IO_BUFFER_SIZE(n)   ((1024 * 1024) / n)
#define trigger_corruption()   (false)

- of the index to look for

Find the index field entry in in the cfg indexes fields.

Returns
instance if found else 0.
static trx_ttrx
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_for_mysql (dict_table_t *table, row_prebuilt_t *prebuilt)

Detailed Description

Import a tablespace to a running instance.

Created 2012-02-08 by Sunny Bains.

Definition in file row0import.cc.

Macro Definition Documentation

#define IO_BUFFER_SIZE (   n)    ((1024 * 1024) / n)
The size of the buffer to use for IO. Note: os_file_read() doesn't expect

reads to fail. If you set the buffer size to be greater than a multiple of the file size then it will assert. TODO: Fix this limitation of the IO functions.

Parameters
n- page size of the tablespace.
Return values
numberof pages

Definition at line 50 of file row0import.cc.

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

Definition at line 3465 of file row0import.cc.

Here is the call graph for this function:

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.

Definition at line 3401 of file row0import.cc.

Here is the call graph for this function:

Variable Documentation

trx_t* trx

< in/out: prebuilt from handler in/out: transaction for import

Definition at line 2198 of file row0import.cc.