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

Classes

struct  Request

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)

Public Attributes

Ptr< GlobalPagem_ptr

Friends

class PgmanProxy

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 
)

Alloc datafile record

Definition at line 2235 of file pgman.cpp.

Here is the caller graph for this function:

Uint32 Page_cache_client::create_data_file ( Signal signal)

Create file record

Definition at line 2226 of file pgman.cpp.

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 
)

Free file

Definition at line 2254 of file pgman.cpp.

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.

Here is the call graph for this function:

Here is the caller graph for this function:

void Page_cache_client::map_file_no ( Signal signal,
Uint32  m_file_no,
Uint32  m_fd 
)

Map file_no to m_fd

Definition at line 2244 of file pgman.cpp.


The documentation for this class was generated from the following files: