1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Test handling of IO errors that occur in OsDelete() or OsTruncate() operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729)

FossilOrigin-Name: b24a6e7b024c8b9a0b6fd15bd8f247e458781ca2
This commit is contained in:
danielk1977
2007-03-27 16:19:51 +00:00
parent 8ef6eff4a5
commit 979f38e5ee
10 changed files with 85 additions and 66 deletions

View File

@@ -783,6 +783,7 @@ static int transferOwnership(unixFile *pFile){
** Delete the named file
*/
int sqlite3UnixDelete(const char *zFilename){
SimulateIOError(return SQLITE_IOERR_DELETE);
unlink(zFilename);
return SQLITE_OK;
}