aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-02-09 23:05:51 +0000
committerdrh <drh@noemail.net>2006-02-09 23:05:51 +0000
commit86631a5ad116fa027578b2400f8ac4a344cb31db (patch)
treea55c31622149d70f98d8af180cafdf4f5a38b0fa /src/os_unix.c
parent0b2a5eeae9d560df467603777dfaac49ccccfe7f (diff)
downloadsqlite-86631a5ad116fa027578b2400f8ac4a344cb31db.tar.gz
sqlite-86631a5ad116fa027578b2400f8ac4a344cb31db.zip
Ignore errors when when calling fsync() on a directory. Ticket #1657. (CVS 3068)
FossilOrigin-Name: d54d3b82c468b7e6dd39aac6aac56b26b3918c37
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 776cbbc02..7573c9175 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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 */