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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user