Commit 7b92f9cf authored by Chad MILLER's avatar Chad MILLER

Merge fix for bug 38145 from 5.0.

parents 01511453 0ba397e0
...@@ -266,6 +266,11 @@ sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name, ...@@ -266,6 +266,11 @@ sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name,
if (end_io_cache(&file)) if (end_io_cache(&file))
goto err_w_file; goto err_w_file;
if (opt_sync_frm) {
if (my_sync(handler, MYF(MY_WME)))
goto err_w_file;
}
if (my_close(handler, MYF(MY_WME))) if (my_close(handler, MYF(MY_WME)))
{ {
DBUG_RETURN(TRUE); DBUG_RETURN(TRUE);
......
...@@ -92,8 +92,8 @@ handle_error(uint sql_errno, ...@@ -92,8 +92,8 @@ handle_error(uint sql_errno,
db_file Handler to use. May be zero, in which case we use db_file Handler to use. May be zero, in which case we use
create_info->db_type create_info->db_type
RETURN RETURN
0 ok false ok
1 error true error
*/ */
bool mysql_create_frm(THD *thd, const char *file_name, bool mysql_create_frm(THD *thd, const char *file_name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment