diff options
author | drh <drh@noemail.net> | 2006-02-13 13:30:19 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2006-02-13 13:30:19 +0000 |
commit | 4452838a65537fe5b6d562b4a0eb766510f604c9 (patch) | |
tree | 5a61a856636f58d1100fdee4f7367163ccf42215 /src/test_async.c | |
parent | 5c32354cb75282a77327d0f57d8105576a6b0224 (diff) | |
download | sqlite-4452838a65537fe5b6d562b4a0eb766510f604c9.tar.gz sqlite-4452838a65537fe5b6d562b4a0eb766510f604c9.zip |
Fix overlapping read logic in the test_async.c demonstration. (CVS 3086)
FossilOrigin-Name: ad25127b067b3135694ddb0de552aad981640669
Diffstat (limited to 'src/test_async.c')
-rw-r--r-- | src/test_async.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test_async.c b/src/test_async.c index 4f1250d0a..8a55b5609 100644 --- a/src/test_async.c +++ b/src/test_async.c @@ -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; |