aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2025-01-15 21:13:38 +0000
committerdrh <>2025-01-15 21:13:38 +0000
commit65d0312c96cd23958372fac8940314c782a6b03c (patch)
tree5f25733f709b84e2f4020741796e97fb4d064a27 /src
parent3ba9adc5c165055268cb0a75020e8a1296c619b8 (diff)
downloadsqlite-65d0312c96cd23958372fac8940314c782a6b03c.tar.gz
sqlite-65d0312c96cd23958372fac8940314c782a6b03c.zip
Check-in [da9124fee28c155c] broken the new SQLITE_IOCAP_SUBPAGE_READ mechanism
for inhibiting direct-overflow-read. This check-in fixes the problem. FossilOrigin-Name: 113078d555eaf740666680562ebbb04f7d823b72e8b2d553627e54ab3d7bf653
Diffstat (limited to 'src')
-rw-r--r--src/pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pager.c b/src/pager.c
index e2dbbeae3..ecec892b4 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -808,7 +808,7 @@ int sqlite3PagerDirectReadOk(Pager *pPager, Pgno pgno){
if( pPager->pWal ){
u32 iRead = 0;
(void)sqlite3WalFindFrame(pPager->pWal, pgno, &iRead);
- return iRead==0; /* Condition (4) */
+ if( iRead ) return 0; /* Case (4) */
}
#endif
assert( pPager->fd->pMethods->xDeviceCharacteristics!=0 );