mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Merge 10.6 into 10.11
This commit is contained in:
commit
2b99e5f7ef
74 changed files with 1078 additions and 239 deletions
|
|
@ -117,7 +117,6 @@ struct row_import {
|
|||
row_import() UNIV_NOTHROW
|
||||
:
|
||||
m_table(NULL),
|
||||
m_version(0),
|
||||
m_hostname(NULL),
|
||||
m_table_name(NULL),
|
||||
m_autoinc(0),
|
||||
|
|
@ -196,8 +195,6 @@ struct row_import {
|
|||
|
||||
dict_table_t* m_table; /*!< Table instance */
|
||||
|
||||
ulint m_version; /*!< Version of config file */
|
||||
|
||||
byte* m_hostname; /*!< Hostname where the
|
||||
tablespace was exported */
|
||||
byte* m_table_name; /*!< Exporting instance table
|
||||
|
|
@ -2992,17 +2989,13 @@ row_import_read_meta_data(
|
|||
return(DB_IO_ERROR);
|
||||
}
|
||||
|
||||
cfg.m_version = mach_read_from_4(row);
|
||||
|
||||
/* Check the version number. */
|
||||
switch (cfg.m_version) {
|
||||
switch (mach_read_from_4(row)) {
|
||||
case IB_EXPORT_CFG_VERSION_V1:
|
||||
|
||||
return(row_import_read_v1(file, thd, &cfg));
|
||||
default:
|
||||
ib_errf(thd, IB_LOG_LEVEL_ERROR, ER_IO_READ_ERROR,
|
||||
"Unsupported meta-data version number (" ULINTPF "), "
|
||||
"file ignored", cfg.m_version);
|
||||
ib_senderrf(thd, IB_LOG_LEVEL_ERROR, ER_NOT_SUPPORTED_YET,
|
||||
"meta-data version");
|
||||
}
|
||||
|
||||
return(DB_ERROR);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue