Public Types |
enum | RequestFlags {
LOCK_PAGE = Pgman::Page_request::LOCK_PAGE,
EMPTY_PAGE = Pgman::Page_request::EMPTY_PAGE,
ALLOC_REQ = Pgman::Page_request::ALLOC_REQ,
COMMIT_REQ = Pgman::Page_request::COMMIT_REQ,
DIRTY_REQ = Pgman::Page_request::DIRTY_REQ,
UNLOCK_PAGE = Pgman::Page_request::UNLOCK_PAGE,
CORR_REQ = Pgman::Page_request::CORR_REQ
} |
Public Member Functions |
| Page_cache_client (SimulatedBlock *block, SimulatedBlock *pgman) |
int | get_page (Signal *, Request &, Uint32 flags) |
void | update_lsn (Local_key, Uint64 lsn) |
int | drop_page (Local_key, Uint32 page_id) |
Uint32 | create_data_file (Signal *) |
Uint32 | alloc_data_file (Signal *, Uint32 file_no) |
void | map_file_no (Signal *, Uint32 m_file_no, Uint32 m_fd) |
void | free_data_file (Signal *, Uint32 file_no, Uint32 fd=RNIL) |
Detailed Description
Definition at line 551 of file pgman.hpp.
Member Function Documentation
Uint32 Page_cache_client::alloc_data_file |
( |
Signal * |
signal, |
|
|
Uint32 |
file_no |
|
) |
| |
Uint32 Page_cache_client::create_data_file |
( |
Signal * |
signal | ) |
|
int Page_cache_client::drop_page |
( |
Local_key |
key, |
|
|
Uint32 |
page_id |
|
) |
| |
Drop page
- Returns
- -1 on error 0 is request is queued >0 is ok
Definition at line 2206 of file pgman.cpp.
void Page_cache_client::free_data_file |
( |
Signal * |
signal, |
|
|
Uint32 |
file_no, |
|
|
Uint32 |
fd = RNIL |
|
) |
| |
int Page_cache_client::get_page |
( |
Signal * |
signal, |
|
|
Request & |
req, |
|
|
Uint32 |
flags |
|
) |
| |
Get a page
- Note
- This request may return true even if previous request for same page return false, and it's callback has not been called
- Returns
- -1, on error 0, request is queued >0, real_page_id
Definition at line 2145 of file pgman.cpp.
void Page_cache_client::map_file_no |
( |
Signal * |
signal, |
|
|
Uint32 |
m_file_no, |
|
|
Uint32 |
m_fd |
|
) |
| |
The documentation for this class was generated from the following files: