summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
diff options
context:
space:
mode:
authorgkodinov/kgeorge@magare.gmz <>2007-07-11 11:57:49 +0300
committergkodinov/kgeorge@magare.gmz <>2007-07-11 11:57:49 +0300
commit49285e96d974c5993e5dc04582b9e6c58bcc5b5d (patch)
tree59e8a2b8ae66e1621ebc91c449331732c2cb907f /sql/unireg.cc
parentc5025571834a80a85c263e7f17209edc574e8925 (diff)
parent015e1290a1db21e02560447ffd72238827add8f7 (diff)
downloadmariadb-git-49285e96d974c5993e5dc04582b9e6c58bcc5b5d.tar.gz
Merge magare.gmz:/home/kgeorge/mysql/work/B29325-5.0-opt
into magare.gmz:/home/kgeorge/mysql/work/B29325-5.1-opt
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r--sql/unireg.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc
index 57847bc70c6..f9e8e54439a 100644
--- a/sql/unireg.cc
+++ b/sql/unireg.cc
@@ -355,6 +355,8 @@ int rea_create_table(THD *thd, const char *path,
// Make sure mysql_create_frm din't remove extension
DBUG_ASSERT(*fn_rext(frm_name));
+ if (thd->variables.keep_files_on_create)
+ create_info->options|= HA_CREATE_KEEP_FILES;
if (file->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,