MySQL 9.1.0
Source Code Documentation
page_track_service.h File Reference
#include <mysql/components/service.h>
#include <functional>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  s_mysql_mysql_page_track
 

Macros

#define MYSQL_THD   THD *
 

Typedefs

typedef 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. More...
 
typedef struct s_mysql_mysql_page_track mysql_service_mysql_page_track_t
 

Enumerations

enum  Page_Track_SE { PAGE_TRACK_SE_INNODB = 1 }
 SE for the page tracking. More...
 

Macro Definition Documentation

◆ MYSQL_THD

#define MYSQL_THD   THD *

Typedef Documentation

◆ mysql_service_mysql_page_track_t

◆ Page_Track_Callback

typedef 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.

Parameters
[in]thdCurrent thread context
[in]bufferbuffer filled with 8 byte page ids; the format is specific to SE. For InnoDB it is space_id (4 bytes) followed by page number (4 bytes)
[in]buf_lenlength of buffer in bytes
[in]num_pagesnumber of valid page IDs in buffer
[in,out]user_ctxuser context passed to page tracking function
Returns
Operation status.

Enumeration Type Documentation

◆ Page_Track_SE

SE for the page tracking.

Currently supports only in InnoDB.

Enumerator
PAGE_TRACK_SE_INNODB