MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FetchIndexRootPages Struct Reference
Inheritance diagram for FetchIndexRootPages:
Collaboration diagram for FetchIndexRootPages:

Classes

struct  Index

Public Types

typedef std::vector< IndexIndexes

Public Member Functions

 FetchIndexRootPages (const dict_table_t *table, trx_t *trx)
virtual ~FetchIndexRootPages () UNIV_NOTHROW
virtual ulint get_space_id () const UNIV_NOTHROW
dberr_t check_row_format (ulint ibd_table_flags) UNIV_NOTHROW
virtual dberr_t operator() (os_offset_t offset, buf_block_t *block) UNIV_NOTHROW
dberr_t build_row_import (row_import *cfg) const UNIV_NOTHROW
- Public Member Functions inherited from AbstractCallback
 AbstractCallback (trx_t *trx)
virtual ~AbstractCallback ()
virtual dberr_t init (os_offset_t file_size, const buf_block_t *block) UNIV_NOTHROW
bool is_compressed_table () const UNIV_NOTHROW
- Public Member Functions inherited from PageCallback
 PageCallback ()
void set_file (const char *filename, os_file_t file) UNIV_NOTHROW
ulint get_zip_size () const
dberr_t set_zip_size (const buf_frame_t *page) UNIV_NOTHROW
ulint get_page_size () const

Public Attributes

const dict_table_tm_table
Indexes m_indexes

Additional Inherited Members

- Protected Member Functions inherited from AbstractCallback
buf_frame_tget_frame (buf_block_t *block) const UNIV_NOTHROW
dberr_t periodic_check () UNIV_NOTHROW
const xdes_t * xdes (ulint page_no, const page_t *page) const UNIV_NOTHROW
dberr_t set_current_xdes (ulint page_no, const page_t *page) UNIV_NOTHROW
bool is_root_page (const page_t *page) const UNIV_NOTHROW
bool is_free (ulint page_no) const UNIV_NOTHROW
- Protected Attributes inherited from AbstractCallback
trx_tm_trx
ulint m_space
ulint m_free_limit
ulint m_size
xdes_t * m_xdes
ulint m_xdes_page_no
ulint m_space_flags
ulint m_table_flags

Detailed Description

Try and determine the index root pages by checking if the next/prev pointers are both FIL_NULL. We need to ensure that skip deleted pages.

Definition at line 616 of file row0import.cc.

Constructor & Destructor Documentation

FetchIndexRootPages::FetchIndexRootPages ( const dict_table_t table,
trx_t trx 
)
inline
Constructor
Parameters
trx- covering (user) transaction
table- table definition in server .

Definition at line 635 of file row0import.cc.

virtual FetchIndexRootPages::~FetchIndexRootPages ( )
inlinevirtual

Destructor

Definition at line 641 of file row0import.cc.

Member Function Documentation

dberr_t FetchIndexRootPages::build_row_import ( row_import cfg) const
Update the import configuration that will be used to import

the tablespace.

Update the import configuration that will be used to import the tablespace.

Returns
error code or DB_SUCCESS

Definition at line 769 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

dberr_t FetchIndexRootPages::check_row_format ( ulint  ibd_table_flags)
inline

Check if the .ibd file row format is the same as the table's.

Parameters
ibd_table_flags- determined from space and page.
Returns
DB_SUCCESS or error code.

Definition at line 654 of file row0import.cc.

Here is the call graph for this function:

virtual ulint FetchIndexRootPages::get_space_id ( ) const
inlinevirtual
Return values
thespace id of the tablespace being iterated over

Implements PageCallback.

Definition at line 645 of file row0import.cc.

dberr_t FetchIndexRootPages::operator() ( os_offset_t  offset,
buf_block_t block 
)
virtual

Called for each block as it is read from the file.

Parameters
offset- physical offset in the file
block- block to convert, it is not from the buffer pool.
Return values
DB_SUCCESSor error code.

Called for each block as it is read from the file. Check index pages to determine the exact row format. We can't get that from the tablespace header flags alone.

Parameters
offset- physical offset in the file
block- block to convert, it is not from the buffer pool.
Return values
DB_SUCCESSor error code.

Implements PageCallback.

Definition at line 719 of file row0import.cc.

Here is the call graph for this function:

Member Data Documentation

Indexes FetchIndexRootPages::m_indexes

Index information

Definition at line 707 of file row0import.cc.

const dict_table_t* FetchIndexRootPages::m_table

Table definition in server.

Definition at line 704 of file row0import.cc.


The documentation for this struct was generated from the following file: