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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user