![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
#include "sql/clone_handler.h"#include <assert.h>#include <string.h>#include <cctype>#include <chrono>#include <cstdlib>#include <string>#include <thread>#include "my_dir.h"#include "my_inttypes.h"#include "my_sys.h"#include "mysql/components/services/log_builtins.h"#include "mysql/plugin.h"#include "mysql/plugin_clone.h"#include "mysql/psi/mysql_file.h"#include "mysql/psi/mysql_mutex.h"#include "mysqld_error.h"#include "sql/mysqld.h"#include "sql/sql_class.h"#include "sql/sql_parse.h"#include "sql/sql_plugin.h"#include "sql/srv_session.h"#include "sql_string.h"#include "violite.h"Functions | |
| THD * | thd_get_current_thd () | 
| Get current THD object from thread local data.  More... | |
| int | clone_handle_create (const char *plugin_name) | 
| Create clone handle to access the clone interfaces from server.  More... | |
| int | clone_handle_check_drop (MYSQL_PLUGIN plugin_info) | 
| Check if it is safe to uninstall clone plugin.  More... | |
| int | clone_handle_drop () | 
| Drop clone handle.  More... | |
| Clone_handler * | clone_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... | |
Variables | |
| Clone_handler * | clone_handle = nullptr | 
| Clone handler global.  More... | |
| const char * | clone_plugin_nm = "clone" | 
| Clone plugin name.  More... | |
| int clone_handle_check_drop | ( | MYSQL_PLUGIN | plugin_info | ) | 
Check if it is safe to uninstall clone plugin.
| [in,out] | plugin_info | plugin | 
| int clone_handle_create | ( | const char * | plugin_name | ) | 
Create clone handle to access the clone interfaces from server.
Called when Clone plugin is installed.
| [in] | plugin_name | clone plugin name | 
| int clone_handle_drop | ( | ) | 
Drop clone handle.
Called when Clone plugin is uninstalled.
| 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.
| [in] | thd | server thread handle | 
| [out] | plugin | plugin reference | 
| void clone_plugin_unlock | ( | THD * | thd, | 
| plugin_ref | plugin | ||
| ) | 
Unlock the clone plugin.
| [in] | thd | server thread handle | 
| [out] | plugin | plugin reference | 
| THD * thd_get_current_thd | ( | ) | 
Get current THD object from thread local data.
| The | THD object for the thread, NULL if not connection thread | 
| Clone_handler* clone_handle = nullptr | 
Clone handler global.
| const char* clone_plugin_nm = "clone" | 
Clone plugin name.