MySQL 8.3.0
Source Code Documentation
AIOHandler Class Reference

Generic AIO Handler methods. More...

Static Public Member Functions

static dberr_t post_io_processing (Slot *slot)
 Do any post processing after a read/write. More...
 
static dberr_t io_complete (const Slot *slot)
 Decompress after a read and punch a hole in the file if it was a write. More...
 

Static Private Member Functions

static bool is_encrypted_page (const Slot *slot)
 Check whether the page was encrypted. More...
 
static bool is_compressed_page (const Slot *slot)
 Check whether the page was compressed. More...
 
static ulint compressed_page_size (const Slot *slot)
 Get the compressed page size. More...
 
static bool can_decompress (const Slot *slot)
 Check if the page contents can be decompressed. More...
 
static dberr_t check_read (Slot *slot, ulint n_bytes)
 Check if we need to read some more data. More...
 

Detailed Description

Generic AIO Handler methods.

Currently handles IO post processing.

Member Function Documentation

◆ can_decompress()

static bool AIOHandler::can_decompress ( const Slot slot)
inlinestaticprivate

Check if the page contents can be decompressed.

Parameters
[in]slotThe slot that contains the IO request
Returns
true if the data read has all the compressed data

◆ check_read()

dberr_t AIOHandler::check_read ( Slot slot,
ulint  n_bytes 
)
staticprivate

Check if we need to read some more data.

Parameters
[in]slotThe slot that contains the IO request
[in]n_bytesTotal bytes read so far
Returns
DB_SUCCESS or error code

◆ compressed_page_size()

static ulint AIOHandler::compressed_page_size ( const Slot slot)
inlinestaticprivate

Get the compressed page size.

Parameters
[in]slotThe slot that contains the IO request
Returns
number of bytes to read for a successful decompress

◆ io_complete()

static dberr_t AIOHandler::io_complete ( const Slot slot)
inlinestatic

Decompress after a read and punch a hole in the file if it was a write.

◆ is_compressed_page()

static bool AIOHandler::is_compressed_page ( const Slot slot)
inlinestaticprivate

Check whether the page was compressed.

Parameters
[in]slotThe slot that contains the IO request
Returns
true if it was a compressed page

◆ is_encrypted_page()

static bool AIOHandler::is_encrypted_page ( const Slot slot)
inlinestaticprivate

Check whether the page was encrypted.

Parameters
[in]slotThe slot that contains the IO request
Returns
true if it was an encrypted page

◆ post_io_processing()

dberr_t AIOHandler::post_io_processing ( Slot slot)
static

Do any post processing after a read/write.

Returns
DB_SUCCESS or error code.

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