summaryrefslogtreecommitdiff
path: root/sql/parse_file.cc
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2009-01-26 10:27:51 -0500
committerChad MILLER <chad@mysql.com>2009-01-26 10:27:51 -0500
commit7b92f9cf95035860c9e6cd6cf5f851ff3fdb0e52 (patch)
tree392be156a765daee2681de5a6b00fdc78b92c78f /sql/parse_file.cc
parent01511453102aa18fb8933927d80eccdeef501c68 (diff)
parent0ba397e0b2a1b1e353115f4e9ee841644dffda2e (diff)
downloadmariadb-git-7b92f9cf95035860c9e6cd6cf5f851ff3fdb0e52.tar.gz
Merge fix for bug 38145 from 5.0.
Diffstat (limited to 'sql/parse_file.cc')
-rw-r--r--sql/parse_file.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/parse_file.cc b/sql/parse_file.cc
index d3ece194dcd..07ea434e8e0 100644
--- a/sql/parse_file.cc
+++ b/sql/parse_file.cc
@@ -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);