1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Add support for SQLITE_NO_SYNC for OS/2, too. (CVS 5918)

FossilOrigin-Name: 2990b5b8e7bd8f91af24e5a606666077855ae283
This commit is contained in:
pweilbacher
2008-11-18 23:03:39 +00:00
parent 1d2988554c
commit 50128aea6a
3 changed files with 16 additions and 9 deletions

View File

@@ -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
}
/*