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);
uint32_t space_id_t
Tablespace identifier.
Definition: api0api.h:49
Clone Notification handler.
Definition: clone0api.h:175
Clone_notify(Type type, space_id_t space, bool no_wait)
Constructor to initiate notification.
Definition: clone0api.cc:2498
space_id_t m_space_id
Tablespace ID for which notification is sent.
Definition: clone0api.h:250
void get_mesg(bool begin, std::string &mesg)
Get notification message for printing.
Definition: clone0api.cc:2628
Type m_type
Notification type.
Definition: clone0api.h:253
uint32_t m_blocked_state
Blocked clone state if clone is blocked.
Definition: clone0api.h:259
Type
Notification type.
Definition: clone0api.h:178
@ SPACE_ALTER_ENCRYPT_GENERAL
@ SPACE_ALTER_INPLACE_BULK
@ SPACE_ALTER_ENCRYPT_GENERAL_FLAGS
int get_error() const
Definition: clone0api.h:227
~Clone_notify()
Destructor to automatically end notification.
Definition: clone0api.cc:2600
Clone_notify & operator=(Clone_notify const &)=delete
Disable assignment.
Wait_at
Notification wait type set.
Definition: clone0api.h:237
int m_error
Saved error.
Definition: clone0api.h:262
Wait_at m_wait
Wait type set.
Definition: clone0api.h:256
bool failed() const
Definition: clone0api.h:224
Clone_notify(const Clone_notify &)=delete
Disable copy construction.
Definition: handler.h:1043
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
void clone_remove_list_file(const char *file_name)
Remove one of the clone list files.
Definition: clone0api.cc:232
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:237
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:982
bool clone_check_recovery_crashpoint(bool is_cloned_db)
Debug function to check and crash during recovery.
Definition: clone0api.cc:1533
void clone_init_list_files()
Check and delete any old list files.
Definition: clone0api.cc:214
void clone_files_recovery(bool finished)
Change cloned file states during recovery.
Definition: clone0api.cc:1547
void clone_update_gtid_status(std::string >ids)
Update cloned GTIDs to recovery status file.
Definition: clone0api.cc:1424
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:784
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:637
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:550
void clone_free()
Uninitialize Clone system.
Definition: clone0api.cc:1651
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:396
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:950
void innodb_clone_get_capability(Ha_clone_flagset &flags)
Get capability flags for clone operation.
Definition: clone0api.cc:312
void clone_files_error()
Revert back clone changes in case of an error.
Definition: clone0api.cc:1497
bool fix_cloned_tables(THD *thd)
Fix cloned non-Innodb tables during recovery.
Definition: clone0api.cc:2246
bool clone_check_provisioning()
Definition: clone0api.cc:1663
dberr_t clone_init()
Initialize Clone system.
Definition: clone0api.cc:1631
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:569
dberr_t
Definition: db0err.h:39
static int flags[50]
Definition: hp_test1.cc:40
MediaType
Definition: media_type.h:33
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:45
const char * begin(const char *const c)
Definition: base64.h:44
mode
Definition: file_handle.h:61
required string type
Definition: replication_group_member_actions.proto:34
Ha_clone_mode
Clone start operation mode.
Definition: handler.h:973
std::bitset< HA_CLONE_TYPE_MAX > Ha_clone_flagset
Definition: handler.h:1015
Ha_clone_type
Clone operation types.
Definition: handler.h:991
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2852
Version control for database, common definitions, and include files.
static int finished(pax_machine *p)
Definition: xcom_base.cc:732