MySQL 9.0.0
Source Code Documentation
clone_handler.h File Reference

Clone handler interface to access clone plugin. More...

#include <atomic>
#include <string>
#include "my_io.h"
#include "mysql.h"
#include "sql/sql_plugin_ref.h"

Go to the source code of this file.

Classes

class  Clone_handler
 Clone plugin handler to convenient way to. More...
 
struct  Clone_handler::XA_Operation
 
struct  Clone_handler::XA_Block
 

Macros

#define CLONE_PSI_STATEMENT_COUNT   5
 Number of PSI_statement_info instruments for clone statements. More...
 

Functions

Clone_handlerclone_plugin_lock (THD *thd, plugin_ref *plugin)
 Check if the clone plugin is installed and lock. More...
 
void clone_plugin_unlock (THD *thd, plugin_ref plugin)
 Unlock the clone plugin. More...
 

Detailed Description

Clone handler interface to access clone plugin.

Macro Definition Documentation

◆ CLONE_PSI_STATEMENT_COUNT

#define CLONE_PSI_STATEMENT_COUNT   5

Number of PSI_statement_info instruments for clone statements.

Function Documentation

◆ clone_plugin_lock()

Clone_handler * clone_plugin_lock ( THD thd,
plugin_ref plugin 
)

Check if the clone plugin is installed and lock.

If the plugin is ready, return the handler to caller.

Parameters
[in]thdserver thread handle
[out]pluginplugin reference
Returns
clone handler on success otherwise NULL

◆ clone_plugin_unlock()

void clone_plugin_unlock ( THD thd,
plugin_ref  plugin 
)

Unlock the clone plugin.

Parameters
[in]thdserver thread handle
[out]pluginplugin reference