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

@@ -818,9 +818,8 @@ int sqlite3PagerDirectReadOk(Pager *pPager, Pgno pgno){
#ifndef SQLITE_OMIT_WAL
if( pPager->pWal ){
u32 iRead = 0;
int rc;
rc = sqlite3WalFindFrame(pPager->pWal, pgno, &iRead);
return (rc==SQLITE_OK && iRead==0);
(void)sqlite3WalFindFrame(pPager->pWal, pgno, &iRead);
return iRead==0;
}
#endif
return 1;