summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@sun.com>2009-09-02 16:19:28 +0500
committerSergey Vojtovich <svoj@sun.com>2009-09-02 16:19:28 +0500
commitf30480a695b313cbd7bcaea4fca1dfc638e8e5a1 (patch)
tree32a6ee72d3f68b14dab2d27bca907fa313df7f2e /sql/unireg.cc
parentf37a5879b4f19aab5be3e6d4ab69d2da60f443b4 (diff)
downloadmariadb-git-f30480a695b313cbd7bcaea4fca1dfc638e8e5a1.tar.gz
BUG#46483 - drop table of partitioned table may leave
extraneous file Online/fast ALTER TABLE of a partitioned table may leave temporary file in database directory. Fixed by removing unnecessary call to handler::ha_create_handler_files(), which was creating partitioning definition file.
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r--sql/unireg.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc
index 68a352e4a44..60674b8390b 100644
--- a/sql/unireg.cc
+++ b/sql/unireg.cc
@@ -412,10 +412,10 @@ int rea_create_table(THD *thd, const char *path,
DBUG_ASSERT(*fn_rext(frm_name));
if (thd->variables.keep_files_on_create)
create_info->options|= HA_CREATE_KEEP_FILES;
- if (file->ha_create_handler_files(path, NULL, CHF_CREATE_FLAG, create_info))
- goto err_handler;
- if (!create_info->frm_only && ha_create_table(thd, path, db, table_name,
- create_info,0))
+ if (!create_info->frm_only &&
+ (file->ha_create_handler_files(path, NULL, CHF_CREATE_FLAG,
+ create_info) ||
+ ha_create_table(thd, path, db, table_name, create_info, 0)))
goto err_handler;
DBUG_RETURN(0);