33#ifndef CLONE_API_INCLUDE
34#define CLONE_API_INCLUDE
89 uint task_id,
int in_err);
102 const char *data_dir);
114 uint loc_len,
uint task_id,
int in_err,
126 uint loc_len,
uint task_id,
int in_err);
225 void get_mesg(
bool begin, std::string &mesg);
uint32_t space_id_t
Tablespace identifier.
Definition: api0api.h:51
Clone Notification handler.
Definition: clone0api.h:179
Clone_notify(Type type, space_id_t space, bool no_wait)
Constructor to initiate notification.
Definition: clone0api.cc:2492
space_id_t m_space_id
Tablespace ID for which notification is sent.
Definition: clone0api.h:254
void get_mesg(bool begin, std::string &mesg)
Get notification message for printing.
Definition: clone0api.cc:2625
Type m_type
Notification type.
Definition: clone0api.h:257
uint32_t m_blocked_state
Blocked clone state if clone is blocked.
Definition: clone0api.h:263
Type
Notification type.
Definition: clone0api.h:182
@ SPACE_ALTER_ENCRYPT_GENERAL
@ SPACE_ALTER_INPLACE_BULK
@ SPACE_ALTER_ENCRYPT_GENERAL_FLAGS
int get_error() const
Definition: clone0api.h:231
~Clone_notify()
Destructor to automatically end notification.
Definition: clone0api.cc:2595
Clone_notify & operator=(Clone_notify const &)=delete
Disable assignment.
Wait_at
Notification wait type set.
Definition: clone0api.h:241
int m_error
Saved error.
Definition: clone0api.h:266
Wait_at m_wait
Wait type set.
Definition: clone0api.h:260
bool failed() const
Definition: clone0api.h:228
Clone_notify(Clone_notify &)=delete
Disable copy construction.
Definition: handler.h:1012
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
void clone_remove_list_file(const char *file_name)
Remove one of the clone list files.
Definition: clone0api.cc:231
int clone_add_to_list_file(const char *list_file_name, const char *file_name)
Add file name to clone list file for future replacement or rollback.
Definition: clone0api.cc:236
int innodb_clone_apply_end(handlerton *hton, THD *thd, const byte *loc, uint loc_len, uint task_id, int in_err)
End apply to destination database.
Definition: clone0api.cc:981
bool clone_check_active()
Check if active clone is running.
Definition: clone0api.cc:1664
bool clone_check_recovery_crashpoint(bool is_cloned_db)
Debug function to check and crash during recovery.
Definition: clone0api.cc:1532
void clone_init_list_files()
Check and delete any old list files.
Definition: clone0api.cc:213
void clone_files_recovery(bool finished)
Change cloned file states during recovery.
Definition: clone0api.cc:1546
void clone_update_gtid_status(std::string >ids)
Update cloned GTIDs to recovery status file.
Definition: clone0api.cc:1423
int innodb_clone_apply_begin(handlerton *hton, THD *thd, const byte *&loc, uint &loc_len, uint &task_id, Ha_clone_mode mode, const char *data_dir)
Begin apply to destination database.
Definition: clone0api.cc:783
int innodb_clone_end(handlerton *hton, THD *thd, const byte *loc, uint loc_len, uint task_id, int in_err)
End copy from source database.
Definition: clone0api.cc:636
int innodb_clone_copy(handlerton *hton, THD *thd, const byte *loc, uint loc_len, uint task_id, Ha_clone_cbk *cbk)
Copy data from source database in chunks via callback.
Definition: clone0api.cc:549
void clone_free()
Uninitialize Clone system.
Definition: clone0api.cc:1650
int innodb_clone_begin(handlerton *hton, THD *thd, const byte *&loc, uint &loc_len, uint &task_id, Ha_clone_type type, Ha_clone_mode mode)
Begin copy from source database.
Definition: clone0api.cc:395
int innodb_clone_apply(handlerton *hton, THD *thd, const byte *loc, uint loc_len, uint task_id, int in_err, Ha_clone_cbk *cbk)
Apply data to destination database in chunks via callback.
Definition: clone0api.cc:949
void innodb_clone_get_capability(Ha_clone_flagset &flags)
Get capability flags for clone operation.
Definition: clone0api.cc:311
void clone_files_error()
Revert back clone changes in case of an error.
Definition: clone0api.cc:1496
bool fix_cloned_tables(THD *thd)
Fix cloned non-Innodb tables during recovery.
Definition: clone0api.cc:2240
bool clone_check_provisioning()
Definition: clone0api.cc:1662
dberr_t clone_init()
Initialize Clone system.
Definition: clone0api.cc:1630
int innodb_clone_ack(handlerton *hton, THD *thd, const byte *loc, uint loc_len, uint task_id, int in_err, Ha_clone_cbk *cbk)
Acknowledge data to source database.
Definition: clone0api.cc:568
dberr_t
Definition: db0err.h:39
static int flags[50]
Definition: hp_test1.cc:40
std::string file_name(Log_file_id file_id)
Provides name of the log file with the given file id, e.g.
Definition: log0pre_8_0_30.cc:94
mode
Definition: file_handle.h:60
required string type
Definition: replication_group_member_actions.proto:34
Ha_clone_mode
Clone start operation mode.
Definition: handler.h:942
std::bitset< HA_CLONE_TYPE_MAX > Ha_clone_flagset
Definition: handler.h:984
Ha_clone_type
Clone operation types.
Definition: handler.h:960
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2622
unsigned int uint
Definition: uca9-dump.cc:75
Version control for database, common definitions, and include files.
static int finished(pax_machine *p)
Definition: xcom_base.cc:732