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

Fix an assertion-fault/segfault problem that comes up when trying to

VACUUM an auto-vacuumed database with a large schema. 
Ticket [da1151f97df244].

FossilOrigin-Name: 86d50ce57feb78440956192e37a03686ffa1e196
This commit is contained in:
drh
2010-02-22 23:17:42 +00:00
parent a0f3509606
commit 4ec84f35e2
4 changed files with 79 additions and 11 deletions

View File

@@ -3840,7 +3840,7 @@ int sqlite3PagerAcquire(
goto pager_acquire_err;
}
if( MEMDB || nMax<(int)pgno || noContent ){
if( MEMDB || nMax<(int)pgno || noContent || !isOpen(pPager->fd) ){
if( pgno>pPager->mxPgno ){
rc = SQLITE_FULL;
goto pager_acquire_err;