1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-25 20:58:26 +03:00

Ignore errors when when calling fsync() on a directory. Ticket #1657. (CVS 3068)

FossilOrigin-Name: d54d3b82c468b7e6dd39aac6aac56b26b3918c37
This commit is contained in:
drh
2006-02-09 23:05:51 +00:00
parent 0b2a5eeae9
commit 86631a5ad1
3 changed files with 13 additions and 8 deletions

View File

@@ -1060,7 +1060,12 @@ static int unixSync(OsFile *id, int dataOnly){
TRACE2("DIRSYNC %-3d\n", pFile->dirfd);
#ifndef SQLITE_DISABLE_DIRSYNC
if( full_fsync(pFile->dirfd, pFile->fullSync, 0) ){
return SQLITE_IOERR;
/* We have received multiple reports of fsync() returning
** errors when applied to directories on certain file systems.
** A failed directory sync is not a big deal. So it seems
** better to ignore the error. Ticket #1657
*/
/* return SQLITE_IOERR; */
}
#endif
close(pFile->dirfd); /* Only need to sync once, so close the directory */