1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-27 08:52:26 +03:00

Additional code to test the SQLITE_FULL return when the disk is full. (CVS 1994)

FossilOrigin-Name: 44e56f0bba61245d342d6e75510d6c35785efd49
This commit is contained in:
drh
2004-10-01 14:38:02 +00:00
parent ededaa59bd
commit 047d4836ff
7 changed files with 62 additions and 19 deletions

View File

@@ -646,6 +646,7 @@ int sqlite3OsWrite(OsFile *id, const void *pBuf, int amt){
int wrote = 0;
assert( id->isOpen );
SimulateIOError(SQLITE_IOERR);
SimulateDiskfullError;
TIMER_START;
while( amt>0 && (wrote = write(id->h, pBuf, amt))>0 ){
amt -= wrote;