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_truncate.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_truncate.cc')
-rw-r--r-- | sql/sql_truncate.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_truncate.cc b/sql/sql_truncate.cc index 92c4d150433..19ce553f5ce 100644 --- a/sql/sql_truncate.cc +++ b/sql/sql_truncate.cc @@ -269,7 +269,7 @@ static bool recreate_temporary_table(THD *thd, TABLE *table) dd_recreate_table(thd, share->db.str, share->table_name.str, share->normalized_path.str); - if (open_table_uncached(thd, share->path.str, share->db.str, + if (open_table_uncached(thd, table_type, share->path.str, share->db.str, share->table_name.str, TRUE)) { error= FALSE; |