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

Fix an assert() in btree to be more precise, as the previous form of that

asser might fail due to recent performance optimizations.

FossilOrigin-Name: 4774938134d0105423720bdc1b4e82164a1e28d993c5cd81c1b03f1f0878427e
This commit is contained in:
drh
2022-07-05 10:40:30 +00:00
parent 3325a5c497
commit 48cae1320b
3 changed files with 8 additions and 10 deletions

View File

@@ -2309,9 +2309,7 @@ getAndInitPage_error1:
pCur->pPage = pCur->apPage[pCur->iPage];
}
testcase( pgno==0 );
assert( pgno!=0 || rc==SQLITE_CORRUPT
|| rc==SQLITE_IOERR_NOMEM
|| rc==SQLITE_NOMEM );
assert( pgno!=0 || rc!=SQLITE_OK );
return rc;
}