diff options
author | pweilbacher <pweilbacher@noemail.net> | 2008-11-18 23:03:39 +0000 |
---|---|---|
committer | pweilbacher <pweilbacher@noemail.net> | 2008-11-18 23:03:39 +0000 |
commit | 50128aea6acf37f677932b874027d002dec49439 (patch) | |
tree | c1fb5912af5dc88dd75b6f95753616326a23efc5 /src/os_os2.c | |
parent | 1d2988554ca41d7f6e5889c80b27953efecadbc0 (diff) | |
download | sqlite-50128aea6acf37f677932b874027d002dec49439.tar.gz sqlite-50128aea6acf37f677932b874027d002dec49439.zip |
Add support for SQLITE_NO_SYNC for OS/2, too. (CVS 5918)
FossilOrigin-Name: 2990b5b8e7bd8f91af24e5a606666077855ae283
Diffstat (limited to 'src/os_os2.c')
-rw-r--r-- | src/os_os2.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/os_os2.c b/src/os_os2.c index 0a3b1434a..56a8092c6 100644 --- a/src/os_os2.c +++ b/src/os_os2.c @@ -12,7 +12,7 @@ ** ** This file contains code that is specific to OS/2. ** -** $Id: os_os2.c,v 1.58 2008/11/07 00:06:18 drh Exp $ +** $Id: os_os2.c,v 1.59 2008/11/18 23:03:40 pweilbacher Exp $ */ #include "sqliteInt.h" @@ -196,7 +196,14 @@ static int os2Sync( sqlite3_file *id, int flags ){ } sqlite3_sync_count++; #endif + /* If we compiled with the SQLITE_NO_SYNC flag, then syncing is a + ** no-op + */ +#ifdef SQLITE_NO_SYNC + return SQLITE_OK; +#else return DosResetBuffer( pFile->h ) == NO_ERROR ? SQLITE_OK : SQLITE_IOERR; +#endif } /* |