Public Member Functions |
| DEBUG_OUT_DEFINES (TSMAN) |
| Tablespace_client (Signal *signal, SimulatedBlock *block, Tsman *tsman, Uint32 table, Uint32 fragment, Uint32 tablespaceId, bool lock=true) |
| Tablespace_client (Signal *signal, Tsman *tsman, Local_key *key) |
int | alloc_extent (Local_key *key) |
int | alloc_page_from_extent (Local_key *key, unsigned bits) |
int | free_extent (Local_key *key, Uint64 lsn) |
int | update_page_free_bits (Local_key *, unsigned bits) |
int | get_page_free_bits (Local_key *, unsigned *uncommitted, unsigned *committed) |
int | unmap_page (Local_key *, Uint32 bits) |
int | restart_undo_page_free_bits (Local_key *, unsigned bits) |
int | get_tablespace_info (CreateFilegroupImplReq *rep) |
int | update_lsn (Local_key *key, Uint64 lsn) |
Public Attributes |
Uint32 | m_block |
Tsman * | m_tsman |
Signal * | m_signal |
Uint32 | m_table_id |
Uint32 | m_fragment_id |
Uint32 | m_tablespace_id |
bool | m_lock |
Detailed Description
Definition at line 281 of file tsman.hpp.
Member Function Documentation
int Tablespace_client::alloc_extent |
( |
Local_key * |
key | ) |
|
|
inline |
Return >0 if success, no of pages in extent, sets key <0 if failure, -error code
Definition at line 397 of file tsman.hpp.
int Tablespace_client::alloc_page_from_extent |
( |
Local_key * |
key, |
|
|
unsigned |
bits |
|
) |
| |
|
inline |
Allocated a page from an extent performs linear search in extent free bits until it find page that has atleast bits bits free
Start search from key->m_page_no and return found page in key->m_page_no this make sequential calls find sequential pages
If page is found, then the unlogged "page allocated bit" is set so that page can't be allocated twice unless freed first
Note: user of allocated page should use update_page_free_bits to undo log changes in free space on page
Return <0 if none found >=0 if found, then free bits of page found is returned
Definition at line 416 of file tsman.hpp.
int Tablespace_client::free_extent |
( |
Local_key * |
key, |
|
|
Uint64 |
lsn |
|
) |
| |
|
inline |
int Tablespace_client::get_page_free_bits |
( |
Local_key * |
key, |
|
|
unsigned * |
uncommitted, |
|
|
unsigned * |
committed |
|
) |
| |
|
inline |
Get page free bits
Definition at line 466 of file tsman.hpp.
Get tablespace info
Store result in rep
Return 0 - on sucess <0 - on error
Definition at line 2311 of file tsman.cpp.
int Tablespace_client::restart_undo_page_free_bits |
( |
Local_key * |
key, |
|
|
unsigned |
bits |
|
) |
| |
|
inline |
Undo handling of page bits
Definition at line 482 of file tsman.hpp.
int Tablespace_client::unmap_page |
( |
Local_key * |
, |
|
|
Uint32 |
bits |
|
) |
| |
|
inline |
Update unlogged page free bit
Definition at line 475 of file tsman.hpp.
int Tablespace_client::update_lsn |
( |
Local_key * |
key, |
|
|
Uint64 |
lsn |
|
) |
| |
Update lsn of page corresponing to key
int Tablespace_client::update_page_free_bits |
( |
Local_key * |
key, |
|
|
unsigned |
bits |
|
) |
| |
|
inline |
Update page free bits
Definition at line 457 of file tsman.hpp.
The documentation for this class was generated from the following files: