diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-04-09 16:20:48 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-04-09 16:20:48 +0200 |
commit | 050d7d6d75cbeb2f048dd0786c702452d2d7c18f (patch) | |
tree | 6106cc984e739698cab322cf8cf719b09a97fc1c /sql/sql_partition.cc | |
parent | 3a8e1a2205b6e4147a484c598d59f01a9c8b720b (diff) | |
download | mariadb-git-050d7d6d75cbeb2f048dd0786c702452d2d7c18f.tar.gz |
optimize discovery for cases when the storage engine is known in advance
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r-- | sql/sql_partition.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index ecd8315b80d..b2e2016b47d 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -4536,7 +4536,7 @@ uint prep_alter_part_table(THD *thd, TABLE *table, Alter_info *alter_info, */ DBUG_ASSERT(thd->mdl_context.is_lock_owner(MDL_key::TABLE, db, table_name, MDL_INTENTION_EXCLUSIVE)); - new_table= open_table_uncached(thd, path, db, table_name, 0); + new_table= open_table_uncached(thd, old_db_type, path, db, table_name, 0); if (!new_table) DBUG_RETURN(TRUE); |