mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Merge fix for bug 38145 from 5.0.
This commit is contained in:
commit
7b92f9cf95
2 changed files with 7 additions and 2 deletions
|
@ -266,6 +266,11 @@ sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name,
|
|||
if (end_io_cache(&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)))
|
||||
{
|
||||
DBUG_RETURN(TRUE);
|
||||
|
|
|
@ -92,8 +92,8 @@ handle_error(uint sql_errno,
|
|||
db_file Handler to use. May be zero, in which case we use
|
||||
create_info->db_type
|
||||
RETURN
|
||||
0 ok
|
||||
1 error
|
||||
false ok
|
||||
true error
|
||||
*/
|
||||
|
||||
bool mysql_create_frm(THD *thd, const char *file_name,
|
||||
|
|
Loading…
Add table
Reference in a new issue