MySQL 9.0.0
Source Code Documentation
Buf_fetch_normal Struct Reference
Inheritance diagram for Buf_fetch_normal:
[legend]

Public Member Functions

 Buf_fetch_normal (const page_id_t &page_id, const page_size_t &page_size)
 Constructor. More...
 
dberr_t get (buf_block_t *&block) noexcept
 Fetch a block from the hash table or read from disk if necessary. More...
 
- Public Member Functions inherited from Buf_fetch< Buf_fetch_normal >
 Buf_fetch (const page_id_t &page_id, const page_size_t &page_size) noexcept
 Constructor. More...
 
buf_block_tsingle_page ()
 For fetching a single page. More...
 

Additional Inherited Members

- Public Attributes inherited from Buf_fetch< Buf_fetch_normal >
const page_id_tm_page_id
 ID of page to lookup. More...
 
const page_size_tm_page_size
 Size of page on disk. More...
 
const bool m_is_temp_space
 true if page belongs to a temporary tablespace. More...
 
ulint m_rw_latch
 Latch mode required on the page. More...
 
buf_block_tm_guess
 Hint about page to fetch. More...
 
Page_fetch m_mode
 Fetch mode. More...
 
const char * m_file
 File from where called. More...
 
ulint m_line
 Line number in file from where called. More...
 
mtr_tm_mtr
 Mini-transaction covering the fetch. More...
 
bool m_dirty_with_no_latch
 Mark page as dirty even if page is being pinned without any latch. More...
 
size_t m_retries
 Number of retries before giving up. More...
 
buf_pool_tm_buf_pool
 Buffer pool to fetch from. More...
 
rw_lock_tm_hash_lock
 Hash table lock. More...
 
friend T
 

Constructor & Destructor Documentation

◆ Buf_fetch_normal()

Buf_fetch_normal::Buf_fetch_normal ( const page_id_t page_id,
const page_size_t page_size 
)
inline

Constructor.

Parameters
[in]page_idPage ID of page to fetch.
[in]page_sizeSize of page on disk.

Member Function Documentation

◆ get()

dberr_t Buf_fetch_normal::get ( buf_block_t *&  block)
noexcept

Fetch a block from the hash table or read from disk if necessary.

Parameters
[out]blockBlock to fetch.
Returns
DB_SUCCESS or error code.

The documentation for this struct was generated from the following file: