mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
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:
parent
1b6afd02b0
commit
cb25ddd100
1 changed files with 7 additions and 0 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue