diff options
author | Marc Alff <marc.alff@sun.com> | 2009-09-17 03:20:11 -0600 |
---|---|---|
committer | Marc Alff <marc.alff@sun.com> | 2009-09-17 03:20:11 -0600 |
commit | 08ffe21317edee77503b13fac86e30c4b59ea17a (patch) | |
tree | d0d731222454addb05b3890fb2bc555da5af7d63 /sql/unireg.cc | |
parent | f662d397c826b21851d7f43df34730f686e1b413 (diff) | |
parent | 4b4fcdd8f00247e4bfcce2229887d572a7aef7f2 (diff) | |
download | mariadb-git-08ffe21317edee77503b13fac86e30c4b59ea17a.tar.gz |
Merge mysql-next-mr --> mysql-trunk-signal
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index 028f774e057..18b0786190a 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -417,10 +417,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); |