diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-10-15 16:02:48 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-10-15 16:02:48 +0000 |
commit | d138dd8687516284324596d521c0a8a9ead84385 (patch) | |
tree | fdf9cf1ae9017a7109ad5b844b83cec4e96bd850 /src/os_unix.c | |
parent | 3ad92f1b64018c523bc06815a100955f35dce98c (diff) | |
download | sqlite-d138dd8687516284324596d521c0a8a9ead84385.tar.gz sqlite-d138dd8687516284324596d521c0a8a9ead84385.zip |
Do not open and sync the directory in unixDelete() if the SQLITE_DISABLE_DIRSYNC option is defined. (CVS 5826)
FossilOrigin-Name: 8ef141644edc5182785c6a554222c2ffbe92fef5
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 159c8d1e4..2f972130a 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -12,7 +12,7 @@ ** ** This file contains code that is specific to Unix systems. ** -** $Id: os_unix.c,v 1.205 2008/10/14 17:58:38 drh Exp $ +** $Id: os_unix.c,v 1.206 2008/10/15 16:02:49 danielk1977 Exp $ */ #include "sqliteInt.h" #if SQLITE_OS_UNIX /* This file is used on unix only */ @@ -2681,6 +2681,7 @@ static int unixDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ int rc = SQLITE_OK; SimulateIOError(return SQLITE_IOERR_DELETE); unlink(zPath); +#ifdef SQLITE_DISABLE_DIRSYNC if( dirSync ){ int fd; rc = openDirectory(zPath, &fd); @@ -2691,6 +2692,7 @@ static int unixDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ close(fd); } } +#endif return rc; } |