Commit cb25ddd1 authored by unknown's avatar unknown

os0file.c:

  Make os_file_flush to ignore the error we get from a raw device in fsync


innobase/os/os0file.c:
  Make os_file_flush to ignore the error we get from a raw device in fsync
parent 1b6afd02
...@@ -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