#include <fil0fil.h>
Detailed Description
Constructor & Destructor Documentation
| PageCallback::PageCallback |
( |
| ) |
|
|
inline |
Member Function Documentation
| ulint PageCallback::get_page_size |
( |
| ) |
const |
|
inline |
The compressed page size
- Returns
- the compressed page size
| virtual ulint PageCallback::get_space_id |
( |
| ) |
const |
|
pure virtual |
- Returns
- the space id of the tablespace
| ulint PageCallback::get_zip_size |
( |
| ) |
const |
|
inline |
The compressed page size
- Returns
- the compressed page size
Called for page 0 in the tablespace file at the start.
- Parameters
-
| file_size | - size of the file in bytes |
| block | - contents of the first page in the tablespace file |
- Return values
-
Called for every page in the tablespace. If the page was not updated then its state must be set to BUF_PAGE_NOT_USED. For compressed tables the page descriptor memory will be at offset: block->frame + UNIV_PAGE_SIZE;
- Parameters
-
| offset | - physical offset within the file |
| block | - block read from file, note it is not from the buffer pool |
- Return values
-
| void PageCallback::set_file |
( |
const char * |
filename, |
|
|
os_file_t |
file |
|
) |
| |
|
inline |
Set the name of the physical file and the file handle that is used to open it for the file that is being iterated over.
- Parameters
-
| filename | - then physical name of the tablespace file. |
| file | - OS file handle |
Set the tablespace compressed table size.
- Returns
- DB_SUCCESS if it is valie or DB_CORRUPTION if not
Field Documentation
File handle to the tablespace
| const char* PageCallback::m_filepath |
| ulint PageCallback::m_page_size |
The tablespace page size.
| ulint PageCallback::m_zip_size |
Compressed table page size
The documentation for this struct was generated from the following file: