aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-11-06 21:20:25 +0000
committerdrh <drh@noemail.net>2006-11-06 21:20:25 +0000
commit551b77365eac72179ed3ab47e94a1702edecf31a (patch)
tree1a54ae68fe71ee8c53ce1df6eb4c4e220491bc4d /src/os_unix.c
parent382765866baba1e650b4402c6594aaf34fcd69af (diff)
downloadsqlite-551b77365eac72179ed3ab47e94a1702edecf31a.tar.gz
sqlite-551b77365eac72179ed3ab47e94a1702edecf31a.zip
Use the difference between the SQLITE_IOERR_SHORT_READ and SQLITE_IOERR_READ
returns from sqlite3OsRead() to make decisions about what to do with the error. (CVS 3503) FossilOrigin-Name: 6324ea811eec1200cee89e6f377368eaf2fcda77
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 4aa8ad023..3152190c4 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1026,7 +1026,7 @@ static int unixRead(OsFile *id, void *pBuf, int amt){
TRACE5("READ %-3d %5d %7d %d\n", ((unixFile*)id)->h, got,
last_page, TIMER_ELAPSED);
SEEK(0);
- SimulateIOError( got=0 );
+ SimulateIOError( got = -1 );
if( got==amt ){
return SQLITE_OK;
}else if( got<0 ){