aboutsummaryrefslogtreecommitdiff
path: root/src/wal.c
diff options
context:
space:
mode:
authordrh <>2024-01-02 21:37:51 +0000
committerdrh <>2024-01-02 21:37:51 +0000
commitf5740f72ecc3e52da9dc6321dd3361c65f1125ca (patch)
tree520182d1383efcfd522cdafa0966a28850a031a3 /src/wal.c
parent4eb626350a8359671fa62712be5b33d4a605d444 (diff)
downloadsqlite-f5740f72ecc3e52da9dc6321dd3361c65f1125ca.tar.gz
sqlite-f5740f72ecc3e52da9dc6321dd3361c65f1125ca.zip
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
Diffstat (limited to 'src/wal.c')
-rw-r--r--src/wal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wal.c b/src/wal.c
index fa22e64c8..eb97831dc 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -3505,6 +3505,7 @@ static int walFindFrame(
iRead = iFrame;
}
if( (nCollide--)==0 ){
+ *piRead = 0;
return SQLITE_CORRUPT_BKPT;
}
iKey = walNextHash(iKey);