1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix an assert() enabled by SQLITE_ENABLE_EXPENSIVE_ASSERT in wal.c.

FossilOrigin-Name: 8d2ed150a7a15626965cf994ef48c3ab61eca6ec
This commit is contained in:
dan
2015-09-09 19:44:33 +00:00
parent 8820250e8d
commit 5c472d0860
3 changed files with 10 additions and 9 deletions

View File

@@ -2462,7 +2462,8 @@ int sqlite3WalFindFrame(
{
u32 iRead2 = 0;
u32 iTest;
for(iTest=iLast; iTest>0; iTest--){
assert( pWal->minFrame>0 );
for(iTest=iLast; iTest>=pWal->minFrame; iTest--){
if( walFramePgno(pWal, iTest)==pgno ){
iRead2 = iTest;
break;