summaryrefslogtreecommitdiff
path: root/sql/sql_tablespace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_tablespace.cc')
-rw-r--r--sql/sql_tablespace.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_tablespace.cc b/sql/sql_tablespace.cc
index 94318a67575..13dfb491af4 100644
--- a/sql/sql_tablespace.cc
+++ b/sql/sql_tablespace.cc
@@ -30,7 +30,7 @@ int mysql_alter_tablespace(THD *thd, st_alter_tablespace *ts_info)
*/
if (hton == NULL || hton->state != SHOW_OPTION_YES)
{
- hton= ha_resolve_by_legacy_type(thd, DB_TYPE_DEFAULT);
+ hton= ha_default_handlerton(thd);
if (ts_info->storage_engine != 0)
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
ER_WARN_USING_OTHER_HANDLER,