MySQL 8.0.39
Source Code Documentation
|
The asynchronous I/O context. More...
Public Member Functions | |
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::UNSET} |
OS_FILE_READ or OS_FILE_WRITE. 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... | |
fil_node_t * | m1 {nullptr} |
The file node for which the IO is requested. More... | |
void * | m2 {nullptr} |
the requester of an aio operation and which can be used to identify which pending aio operation was completed More... | |
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... | |
file::Block * | buf_block {nullptr} |
Buffer block for compressed pages or encrypted pages. More... | |
bool | skip_punch_hole {false} |
true, if we shouldn't punch a hole after writing the page More... | |
The asynchronous I/O context.
|
inline |
|
noexcept |
Print this object into the given output stream.
|
noexcept |
Serialize the object into JSON format.
file::Block* Slot::buf_block {nullptr} |
Buffer block for compressed pages or encrypted pages.
dberr_t Slot::err {DB_ERROR_UNSET} |
AIO completion status.
pfs_os_file_t Slot::file |
file where to read or write
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
fil_node_t* Slot::m1 {nullptr} |
The file node for which the IO is requested.
void* Slot::m2 {nullptr} |
the requester of an aio operation and which can be used to identify which pending aio operation was completed
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
bool Slot::skip_punch_hole {false} |
true, if we shouldn't punch a hole after writing the page
IORequest Slot::type {IORequest::UNSET} |
OS_FILE_READ or OS_FILE_WRITE.