MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Logfile_client Class Reference

Classes

struct  Change
struct  Request

Public Types

enum  RequestFlags

Public Member Functions

 Logfile_client (SimulatedBlock *block, Lgman *, Uint32 logfile_group_id, bool lock=true)
int sync_lsn (Signal *, Uint64, Request *, Uint32 flags)
Uint64 add_entry (const void *, Uint32 len)
Uint64 add_entry (const Change *, Uint32 cnt)
Uint64 add_entry (Local_key, void *base, Change *)
Uint64 add_entry (Local_key, Uint32 off, Uint32 change)
int get_log_buffer (Signal *, Uint32 sz, SimulatedBlock::CallbackPtr *)
int alloc_log_space (Uint32 words)
int free_log_space (Uint32 words)
void exec_lcp_frag_ord (Signal *signal)

Public Attributes

Uint32 m_logfile_group_id

Detailed Description

Definition at line 333 of file lgman.hpp.

Member Enumeration Documentation

Request flags

Definition at line 354 of file lgman.hpp.

Member Function Documentation

Uint64 Logfile_client::add_entry ( const Change src,
Uint32  cnt 
)

for callback_buffer, always allocats 2 extra... not knowing if LSN must be added or not

Definition at line 2400 of file lgman.cpp.

int Logfile_client::get_log_buffer ( Signal signal,
Uint32  sz,
SimulatedBlock::CallbackPtr callback 
)

Check for space in log buffer

return >0 if available 0 on time slice -1 on error

Definition at line 1621 of file lgman.cpp.

Here is the caller graph for this function:

int Logfile_client::sync_lsn ( Signal signal,
Uint64  lsn,
Request req,
Uint32  flags 
)

Make sure a lsn is stored

Returns
-1, on error 0, request in queued >0, done

Definition at line 1393 of file lgman.cpp.


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