summaryrefslogtreecommitdiff
path: root/sql/sql_tablespace.cc
diff options
context:
space:
mode:
authorunknown <acurtis@xiphis.org>2006-06-12 06:50:11 -0700
committerunknown <acurtis@xiphis.org>2006-06-12 06:50:11 -0700
commit01e8913e7751a04fa7045974147e6fec5f7c150d (patch)
tree765547ed68437f6b146e3624d5185aecdac82e0a /sql/sql_tablespace.cc
parentb912f9ecdd078707748f480b81927c516f622cb5 (diff)
downloadmariadb-git-01e8913e7751a04fa7045974147e6fec5f7c150d.tar.gz
Bug#20168
"Change in behavior --default-storage-engine=ndb or ndbcluster" Reduce use of legacy_db_type, some code cleanup (serg read my mind and implemented desired mysqld.cc changes) sql/handler.cc: Bug#20168 remove some use of legacy_db_type cleanup code, new func for default type sql/handler.h: Bug#20168 remove some use of legacy_db_type cleanup code, new func for default type sql/sql_plugin.cc: compiler hints, consts sql/sql_plugin.h: compiler hints, consts sql/sql_tablespace.cc: use ha_default_handlerton instead of resolving DB_TYPE_DEFAULT
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,