Commit 116ced2f authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi

os0file.c:

  Make os_file_flush to ignore the error we get from a raw device in fsync
parent 3fef3c7e
...@@ -582,6 +582,13 @@ os_file_flush( ...@@ -582,6 +582,13 @@ os_file_flush(
return(TRUE); return(TRUE);
} }
/* Since Linux returns EINVAL if the 'file' is actually a raw device,
we choose to ignore that error */
if (errno == EINVAL) {
return(TRUE);
}
fprintf(stderr, fprintf(stderr,
"InnoDB: Error: the OS said file flush did not succeed\n"); "InnoDB: Error: the OS said file flush did not succeed\n");
......
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