diff options
author | danielk1977 <danielk1977@noemail.net> | 2007-09-01 16:16:15 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2007-09-01 16:16:15 +0000 |
commit | 843e65f2fce3ed601c017f82e4d55bcac028241b (patch) | |
tree | 3c647498c70a275532aec75bca3c4068520d9460 /src/os_unix.c | |
parent | 28c66307d76d973e10ca73d40477729bfbd670c8 (diff) | |
download | sqlite-843e65f2fce3ed601c017f82e4d55bcac028241b.tar.gz sqlite-843e65f2fce3ed601c017f82e4d55bcac028241b.zip |
Remove the syncOk argument to pager_recycle. Now that sqlite3_memory_release uses a global lru list of page, it is no longer required. (CVS 4364)
FossilOrigin-Name: fb27692ab10b22851b265348bb6b3e1dececd60f
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 46a176182..f4a9ffe15 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -2484,6 +2484,13 @@ static int unixGetTempName(sqlite3_vfs *pVfs, char *zBuf){ int i, j; struct stat buf; const char *zDir = "."; + + /* It's odd to simulate an io-error here, but really this is just + ** using the io-error infrastructure to test that SQLite handles this + ** function failing. + */ + SimulateIOError( return SQLITE_ERROR ); + azDirs[0] = sqlite3_temp_directory; for(i=0; i<sizeof(azDirs)/sizeof(azDirs[0]); i++){ if( azDirs[i]==0 ) continue; @@ -2517,6 +2524,14 @@ static int unixGetTempName(sqlite3_vfs *pVfs, char *zBuf){ ** this buffer before returning. */ static int unixFullPathname(sqlite3_vfs *pVfs, const char *zPath, char *zOut){ + + /* It's odd to simulate an io-error here, but really this is just + ** using the io-error infrastructure to test that SQLite handles this + ** function failing. This function could fail if, for example, the + ** current working directly has been unlinked. + */ + SimulateIOError( return SQLITE_ERROR ); + assert( pVfs->mxPathname==MAX_PATHNAME ); zOut[MAX_PATHNAME-1] = '\0'; if( zPath[0]=='/' ){ |