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

Fix overlapping read logic in the test_async.c demonstration. (CVS 3086)

FossilOrigin-Name: ad25127b067b3135694ddb0de552aad981640669
This commit is contained in:
drh
2006-02-13 13:30:19 +00:00
parent 5c32354cb7
commit 4452838a65
3 changed files with 9 additions and 9 deletions

View File

@@ -474,8 +474,8 @@ static int asyncRead(OsFile *id, void *obuf, int amt){
for(p=async.pQueueFirst; p; p = p->pNext){
if( p->pFile==pFile && p->op==ASYNC_WRITE ){
int iBeginIn = (p->iOffset - iOffset);
int iBeginOut = (iOffset - p->iOffset);
int iBeginOut = (p->iOffset - iOffset);
int iBeginIn = -iBeginOut;
int nCopy;
if( iBeginIn<0 ) iBeginIn = 0;