diff options
author | drh <> | 2024-01-02 21:37:51 +0000 |
---|---|---|
committer | drh <> | 2024-01-02 21:37:51 +0000 |
commit | f5740f72ecc3e52da9dc6321dd3361c65f1125ca (patch) | |
tree | 520182d1383efcfd522cdafa0966a28850a031a3 /src/wal.c | |
parent | 4eb626350a8359671fa62712be5b33d4a605d444 (diff) | |
download | sqlite-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3505,6 +3505,7 @@ static int walFindFrame( iRead = iFrame; } if( (nCollide--)==0 ){ + *piRead = 0; return SQLITE_CORRUPT_BKPT; } iKey = walNextHash(iKey); |