summaryrefslogtreecommitdiffstats
path: root/storage/innobase/include/row0import.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/include/row0import.h')
-rw-r--r--storage/innobase/include/row0import.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/storage/innobase/include/row0import.h b/storage/innobase/include/row0import.h
index fd2651da..33e0da0f 100644
--- a/storage/innobase/include/row0import.h
+++ b/storage/innobase/include/row0import.h
@@ -33,6 +33,7 @@ Created 2012-02-08 by Sunny Bains
struct trx_t;
struct dict_table_t;
struct row_prebuilt_t;
+struct HA_CREATE_INFO;
/*****************************************************************//**
Imports a tablespace. The space id in the .ibd file must match the space id
@@ -64,4 +65,13 @@ dberr_t
row_import_update_index_root(trx_t* trx, dict_table_t* table, bool reset)
MY_ATTRIBUTE((nonnull, warn_unused_result));
+/** Prepare the create info to create a new stub table for import.
+@param thd Connection
+@param name Table name, format: "db/table_name".
+@param create_info The create info for creating a stub.
+@return ER_ error code
+@retval 0 on success */
+int prepare_create_stub_for_import(THD *thd, const char *name,
+ HA_CREATE_INFO& create_info);
+
#endif /* row0import_h */