1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Adjust the sqlite3PagerDirectReadOk() routine (part of the

SQLITE_DIRECT_OVERFLOW_READ optimization) to use less code and to be
more easily testable.

FossilOrigin-Name: eed670ea2a9424f7df4eeb01c152fc38f7190a5e39aa891651b28dc91fcdc019
This commit is contained in:
drh
2024-01-02 21:37:51 +00:00
parent 4eb626350a
commit f5740f72ec
4 changed files with 12 additions and 12 deletions

View File

@@ -3505,6 +3505,7 @@ static int walFindFrame(
iRead = iFrame;
}
if( (nCollide--)==0 ){
*piRead = 0;
return SQLITE_CORRUPT_BKPT;
}
iKey = walNextHash(iKey);