24#ifndef MYSQL_PAGE_TRACK_H
25#define MYSQL_PAGE_TRACK_H
108 uint64_t *start_id, uint64_t *stop_id,
109 unsigned char *
buffer,
size_t buffer_len,
133 uint64_t *start_id, uint64_t *stop_id,
134 uint64_t *num_pages));
154 uint64_t *initial_start_id, uint64_t *last_start_id));
#define MYSQL_THD
Definition: backup_page_tracker.h:38
An implementation of page tracking service.
Definition: mysql_page_track_imp.h:33
static int get_status(THD *opaque_thd, Page_Track_SE se_type, uint64_t *initial_start_id, uint64_t *last_start_id) noexcept
API to check if page tracking is active or not and to return start id if it's active.
Definition: page_track_service.cc:156
static int get_page_ids(THD *opaque_thd, Page_Track_SE se_type, uint64_t *start_id, uint64_t *stop_id, unsigned char *buffer, size_t buffer_len, Page_Track_Callback cbk_func, void *cbk_ctx) noexcept
Service API to get tracked pages.
Definition: page_track_service.cc:111
static int purge(THD *opaque_thd, Page_Track_SE se_type, uint64_t *purge_id) noexcept
Service API to purge page tracking data.
Definition: page_track_service.cc:88
static int stop(THD *opaque_thd, Page_Track_SE se_type, uint64_t *stop_id) noexcept
Service API to stop page tracking.
Definition: page_track_service.cc:66
static int start(THD *opaque_thd, Page_Track_SE se_type, uint64_t *start_id) noexcept
Service API to start page tracking.
Definition: page_track_service.cc:44
static int get_num_page_ids(THD *opaque_thd, Page_Track_SE se_type, uint64_t *start_id, uint64_t *stop_id, uint64_t *num_pages) noexcept
Service API to get approximate number of pages tracked in the given range.
Definition: page_track_service.cc:134
Specifies macros to define Components.
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
int(* Page_Track_Callback)(MYSQL_THD thd, const unsigned char *buffer, size_t buf_len, int num_pages, void *user_ctx)
Page tracking callback function.
Definition: page_track_service.h:66
Page_Track_SE
SE for the page tracking.
Definition: page_track_service.h:51
#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