24#ifndef BINLOG_SERVICE_ITERATOR_FILE_STORAGE_H_
25#define BINLOG_SERVICE_ITERATOR_FILE_STORAGE_H_
73 const char *excluded_gtids_as_string));
120 unsigned char *
buffer, uint64_t buffer_capacity,
121 uint64_t *bytes_read));
165 binlog_storage_iterator)
Binlog_iterator_service_init_status
Definition: binlog_storage_iterator.h:35
Binlog_iterator_service_get_status
This enumeration lists the possible return values for the get function.
Definition: binlog_storage_iterator.h:56
Definition: file_storage.h:31
static Binlog_iterator_service_init_status init(my_h_binlog_storage_iterator *iterator, const char *excluded_gtids_as_string) noexcept
Initializes the iterator.
Definition: file_storage.cc:541
static bool unregister_service()
This unregisters runtime binary log related file storage services from the server registry.
Definition: file_storage.cc:748
static Binlog_iterator_service_get_status get(my_h_binlog_storage_iterator iterator, unsigned char *buffer, uint64_t buffer_capacity, uint64_t *bytes_read) noexcept
Returns the next entry in the log files, end-of-file, or an error.
Definition: file_storage.cc:633
static mysql_service_status_t get_next_entry_size(my_h_binlog_storage_iterator iterator, uint64_t *size) noexcept
Gets the size of the next block to be read.
Definition: file_storage.cc:703
static void deinit(my_h_binlog_storage_iterator iterator) noexcept
Destroys the iterator.
Definition: file_storage.cc:624
static mysql_service_status_t get_storage_details(my_h_binlog_storage_iterator iterator, char *buffer, uint64_t *size) noexcept
Gets details about the entry's storage in a JSON format.
Definition: file_storage.cc:598
static const std::string SERVICE_NAME
The fully qualified service name: "binlog_storage_iterator.file".
Definition: file_storage.h:34
static bool register_service()
This registers runtime binary log related file services in the service registry.
Definition: file_storage.cc:725
Definition: file_storage.cc:445
size_t size(const char *const c)
Definition: base64.h:46
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
Specifies macros to define Service Implementations.
#define BEGIN_SERVICE_IMPLEMENTATION(component, service)
Declares a Service Implementation.
Definition: service_implementation.h:62
#define END_SERVICE_IMPLEMENTATION()
A macro to end the last declaration of a Service Implementation.
Definition: service_implementation.h:67
#define DEFINE_BOOL_METHOD(name, args)
A short macro to define method that returns bool, which is the most common case.
Definition: service_implementation.h:88
#define DEFINE_METHOD(retval, name, args)
A macro to ensure method implementation has required properties, that is it does not throw exceptions...
Definition: service_implementation.h:79
Definition: file_storage.cc:430
Definition: server_struct.h:39