summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <yuchen.pei@mariadb.com>2023-02-21 12:21:28 +1100
committerYuchen Pei <yuchen.pei@mariadb.com>2023-02-21 12:26:19 +1100
commitf9ee2a51c39bc6aa28121dbbb44320d572718dc7 (patch)
tree298b9751aa4c944dd89d31d798ed94f9f50191ab
parent23422c45feae92807c8dcb98d275a0332569b313 (diff)
downloadmariadb-git-bb-11.0-mdev-26137-wip-alter-import.tar.gz
-rw-r--r--storage/innobase/handler/ha_innodb.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 45ae50b55d0..2333c2524f0 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -10588,9 +10588,8 @@ create_table_info_t::create_table_def()
? doc_id_col : n_cols - num_v;
}
- /* Set file_unreadable to avoid is_readable() assertion
- errors. Semantically we assume the tablespace is not available
- until we are able to import it.*/
+ /* Assume the tablespace is not available until we are able to
+ import it.*/
if (thd_ddl_options(m_thd)->import_tablespace())
table->file_unreadable = true;
@@ -11608,8 +11607,7 @@ index_bad:
}
/* If we are trying to import a tablespace, mark tablespace as
- discarded. Without this dict_create_index_space() will attempt to
- create a tablespace. */
+ discarded. */
if (thd_ddl_options(m_thd)->import_tablespace())
m_flags2 |= DICT_TF2_DISCARDED;