MySQL 26.10.0
Source Code Documentation
backup_page_tracker.cc File Reference
#include "backup_page_tracker.h"
#include <algorithm>
#include <cerrno>
#include <cstdlib>
#include <string>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include "backup_comp_constants.h"
#include "mysql/components/services/bits/my_err_bits.h"
#include "mysqld_error.h"

Macros

#define OS_PATH_SEPARATOR   '/'
 

Functions

static bool has_invalid_udf_int_args (UDF_ARGS *args, unsigned int arg_count)
 Validate that a UDF argument list contains the expected number of integer-valued arguments and that each argument has a non-null value pointer. More...
 
int page_track_callback (MYSQL_THD opaque_thd, const uchar *buffer, size_t buffer_length, int page_count, void *context)
 Callback method from InnoDB page-tracking to return the changed pages. More...
 

Variables

char * mysqlbackup_backup_id
 

Macro Definition Documentation

◆ OS_PATH_SEPARATOR

#define OS_PATH_SEPARATOR   '/'

Function Documentation

◆ has_invalid_udf_int_args()

static bool has_invalid_udf_int_args ( UDF_ARGS *  args,
unsigned int  arg_count 
)
static

Validate that a UDF argument list contains the expected number of integer-valued arguments and that each argument has a non-null value pointer.

This guards UDFs against typed SQL NULL inputs such as CAST(NULL AS SIGNED), which may report INT_RESULT in args->arg_type[] while still providing a null entry in args->args[].

Parameters
argsUDF argument descriptor supplied by the server.
arg_countExpected number of integer arguments.
Return values
trueThe argument list is invalid.
falseThe argument list is valid.

◆ page_track_callback()

int page_track_callback ( MYSQL_THD  opaque_thd,
const uchar *  buffer,
size_t  buffer_length,
int  page_count,
void *  context 
)

Callback method from InnoDB page-tracking to return the changed pages.

Parameters
[in]opaque_thdCurrent thread context.
[in]bufferBuffer filled with 8 byte page ids.
[in]buffer_lengthTotal buffer length
[in]page_countNumber of pages in the buffer
[in]contextUser data pointer passed to the InnoDB service
Returns
Status if the call-back was successful in handling the data
Return values
0success
non-zerofailure

Variable Documentation

◆ mysqlbackup_backup_id

char* mysqlbackup_backup_id
extern