MySQL 9.1.0
Source Code Documentation
clone0copy.cc File Reference

Innodb copy snapshot data. More...

#include "buf0dump.h"
#include "clone0clone.h"
#include "dict0dict.h"
#include "fsp0sysspace.h"
#include "sql/binlog.h"
#include "sql/clone_handler.h"
#include "sql/handler.h"
#include "sql/mysqld.h"
#include "srv0start.h"

Functions

static int add_redo_file_callback (char *file_name, uint64_t file_size, uint64_t file_offset, void *context)
 Callback to add an archived redo file to current snapshot. More...
 
static int add_page_callback (void *context, byte *buff, uint num_pages)
 Callback to add tracked page IDs to current snapshot. More...
 
THDthd_get_current_thd ()
 Get current THD object from thread local data. More...
 

Detailed Description

Innodb copy snapshot data.

Function Documentation

◆ add_page_callback()

static int add_page_callback ( void *  context,
byte buff,
uint  num_pages 
)
static

Callback to add tracked page IDs to current snapshot.

Parameters
[in]contextsnapshot
[in]buffbuffer having page IDs
[in]num_pagesnumber of tracked pages
Returns
error code

◆ add_redo_file_callback()

static int add_redo_file_callback ( char *  file_name,
uint64_t  file_size,
uint64_t  file_offset,
void *  context 
)
static

Callback to add an archived redo file to current snapshot.

Parameters
[in]file_namefile name
[in]file_sizefile size in bytes
[in]file_offsetstart offset in bytes
[in]contextsnapshot
Returns
error code

◆ thd_get_current_thd()

THD * thd_get_current_thd ( )

Get current THD object from thread local data.

Return values
TheTHD object for the thread, NULL if not connection thread