37 using byte =
unsigned char;
75 bool optimize_writes) = 0;
114#ifndef UNIV_HOTBACKUP
215 [[nodiscard]]
virtual Status_IO write_pages(
216 std::span<const byte *> buffers,
Page_number first_page_numebr) = 0;
219#ifndef UNIV_HOTBACKUP
Class that stores callback function reference as well as the result of the callback function call (in...
Definition: keyring_service.cc:44
Types for AIO operations.
Definition: os0file.h:262
Definition: fil0tablespace_node_handle_interface.h:35
virtual bool needs_flushes_for_durability() const =0
Returns true if the node must be flushed in general to ensure data durability.
Status_IO
Definition: fil0tablespace_node_handle_interface.h:79
virtual Status fill_range_with_zeros(Page_number first_page, Page_number number_of_pages, bool optimize_writes)=0
Makes the number_of_pages pages, starting with page number first_page contain all zeros.
virtual Status flush()=0
Ensures any data written so far to this tablespace node before this call will be made durable and wil...
virtual Status truncate(Page_number size)=0
Truncate the node storage to the given size.
uint32_t Page_number
Type used for numbering the pages in the node.
Definition: fil0tablespace_node_handle_interface.h:42
Status
Definition: fil0tablespace_node_handle_interface.h:39
virtual Status_IO write_page(IORequest req, byte *buffer, size_t buffer_len, Page_number page_no)=0
Writes a requested page synchronously.
virtual Status_IO write_page_async(IORequest req, byte *buffer, size_t buffer_len, Page_number page_no, Callback callback)=0
Writes a requested page asynchronously.
virtual ~Tablespace_node_handle_interface()=default
Closes the opened node handle.
virtual Status_IO read_page(IORequest req, byte *buffer, Page_number page_no)=0
Reads a requested page synchronously.
virtual Status_IO read_page_async(IORequest req, byte *buffer, Page_number page_no, Callback callback)=0
Reads a requested page asynchronously.
dberr_t
Definition: db0err.h:39
Definition: fil0fil.cc:1392
size_t size(const char *const c)
Definition: base64.h:46
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
The interface to the operating system file io.