29#ifndef MYSQL_PLUGIN_CLONE_INCLUDED
30#define MYSQL_PLUGIN_CLONE_INCLUDED
36#define MYSQL_CLONE_INTERFACE_VERSION 0x0100
63 const char *remote_user,
const char *remote_passwd,
64 const char *data_dir,
int ssl_mode);
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
void * MYSQL_PLUGIN
Definition: plugin.h:82
stdx::expected< native_handle_type, error_type > socket(int family, int sock_type, int protocol)
Definition: socket.h:63
int clone_handle_drop()
Drop clone handle.
Definition: clone_handler.cc:300
int clone_handle_check_drop(MYSQL_PLUGIN plugin_info)
Check if it is safe to uninstall clone plugin.
Definition: clone_handler.cc:286
int clone_handle_create(const char *plugin_name)
Create clone handle to access the clone interfaces from server.
Definition: clone_handler.cc:270
static MYSQL_PLUGIN plugin_info
Definition: rewriter_plugin.cc:89
LEX_CSTRING * plugin_name(st_plugin_int **ref)
Definition: sql_plugin_ref.h:95
An instrumented socket.
Definition: mysql_socket_bits.h:35
The descriptor structure for the plugin, that is referred from st_mysql_plugin.
Definition: plugin_clone.h:43
int interface_version
clone plugin interface version
Definition: plugin_clone.h:45
int(* clone_server)(THD *thd, MYSQL_SOCKET socket)
Clone database and send to remote clone client.
Definition: plugin_clone.h:70
int(* clone_client)(THD *thd, const char *remote_host, uint remote_port, const char *remote_user, const char *remote_passwd, const char *data_dir, int ssl_mode)
Clone database from remote server.
Definition: plugin_clone.h:62
int(* clone_local)(THD *thd, const char *data_dir)
Clone database from local server.
Definition: plugin_clone.h:51