aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-01-05 16:07:30 +0000
committerdrh <drh@noemail.net>2012-01-05 16:07:30 +0000
commite349519f1eec8ad81105b49ef3869fa743f8fe93 (patch)
tree88bfcda39b90dc485da477d5f2af0f415bbc2e97 /src/os_unix.c
parente0711b47b12cf0312690c7240d6ee09b67ce4822 (diff)
downloadsqlite-e349519f1eec8ad81105b49ef3869fa743f8fe93.tar.gz
sqlite-e349519f1eec8ad81105b49ef3869fa743f8fe93.zip
Change the unix VFS so that it ignores all but the least-significant bit
of the syncDir flag to xDelete. Add an assert to prove that the core only ever uses that one bit. FossilOrigin-Name: e75fd3b27423272b988921ac0e272f9600818b8c
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 4f263bcdd..9a3cdfb9b 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5216,7 +5216,7 @@ static int unixDelete(
return unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
}
#ifndef SQLITE_DISABLE_DIRSYNC
- if( dirSync ){
+ if( (dirSync & 1)!=0 ){
int fd;
rc = osOpenDirectory(zPath, &fd);
if( rc==SQLITE_OK ){