![]() |
MySQL 26.7.0
Source Code Documentation
|
The asynchronous I/O context. More...
Public Member Functions | |
| bool | is_read () const |
| void | simulate_incorrect_page_read (dberr_t err) |
| Slot () | |
| std::string | to_json () const noexcept |
| Serialize the object into JSON format. More... | |
| std::ostream & | print (std::ostream &out) const noexcept |
| Print this object into the given output stream. More... | |
Public Attributes | |
| uint16_t | pos {0} |
| Default constructor/assignment etc. More... | |
| bool | is_reserved {false} |
| true if this slot is reserved More... | |
| std::chrono::steady_clock::time_point | reservation_time |
| time when reserved More... | |
| byte * | buf {nullptr} |
| buffer used in i/o More... | |
| byte * | ptr {nullptr} |
| Buffer pointer used for actual IO. More... | |
| IORequest | type {IORequest::Type::UNSET} |
| IO context used for the IO operation. More... | |
| os_offset_t | offset {0} |
| file offset in bytes More... | |
| pfs_os_file_t | file |
| file where to read or write More... | |
| const char * | name {nullptr} |
| file name or path More... | |
| bool | io_already_done {false} |
| used only in simulated aio: true if the physical i/o already made and only the slot message needs to be passed to the caller of os_aio_simulated_handler More... | |
| std::function< void(dberr_t)> | callback |
| dberr_t | err {DB_ERROR_UNSET} |
| AIO completion status. More... | |
| ulint | len {0} |
| length of the block to read or write More... | |
| ulint | n_bytes {0} |
| bytes written/read. More... | |
The asynchronous I/O context.
|
inline |
|
inline |
|
noexcept |
Print this object into the given output stream.
| void Slot::simulate_incorrect_page_read | ( | dberr_t | err | ) |
|
noexcept |
Serialize the object into JSON format.
| std::function<void(dberr_t)> Slot::callback |
| dberr_t Slot::err {DB_ERROR_UNSET} |
AIO completion status.
| pfs_os_file_t Slot::file |
| bool Slot::io_already_done {false} |
used only in simulated aio: true if the physical i/o already made and only the slot message needs to be passed to the caller of os_aio_simulated_handler
| bool Slot::is_reserved {false} |
true if this slot is reserved
| ulint Slot::len {0} |
length of the block to read or write
| ulint Slot::n_bytes {0} |
bytes written/read.
| const char* Slot::name {nullptr} |
file name or path
| os_offset_t Slot::offset {0} |
file offset in bytes
| uint16_t Slot::pos {0} |
Default constructor/assignment etc.
are OK index of the slot in the aio array
Buffer pointer used for actual IO.
We advance this when partial IO is required and not buf
| std::chrono::steady_clock::time_point Slot::reservation_time |
time when reserved
| IORequest Slot::type {IORequest::Type::UNSET} |
IO context used for the IO operation.