summaryrefslogtreecommitdiff
path: root/sql/parse_file.cc
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2009-01-14 11:15:11 -0500
committerChad MILLER <chad@mysql.com>2009-01-14 11:15:11 -0500
commit9b1b1d507e95c52a362f5f029d4fd06a13c0778b (patch)
tree9eab4db943dedc455a68a0b0a8d6560520d0d54e /sql/parse_file.cc
parent386ec13b590a29608bf8ddea39e1acc875c702a7 (diff)
parente85a3f7bc270723112affa6557d1fa6e7482ff61 (diff)
downloadmariadb-git-9b1b1d507e95c52a362f5f029d4fd06a13c0778b.tar.gz
Merge from dev tree.
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 ade0709cf0d..c4b07ed9dac 100644
--- a/sql/parse_file.cc
+++ b/sql/parse_file.cc
@@ -249,6 +249,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);