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
This commit is contained in:
unknown 2001-12-27 00:56:40 +02:00
commit cb25ddd100

View file

@ -582,6 +582,13 @@ os_file_flush(
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,
"InnoDB: Error: the OS said file flush did not succeed\n");