1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Increase the max_page_count on ROLLBACK, if necessary, so that it is sufficient

to cover the entire database.  Fix for the problem identified by
[forum:/forumpost/3b9e894312|forum post 3b9e894312].

FossilOrigin-Name: 12c012162ce110a7a7fbbe853f422e23cb4ae10b45237727328c8f3315b70842
This commit is contained in:
drh
2022-03-01 14:13:32 +00:00
parent 935c37229c
commit 90368c5dcb
4 changed files with 39 additions and 8 deletions

View File

@@ -2845,6 +2845,9 @@ static int pager_playback(Pager *pPager, int isHot){
goto end_playback;
}
pPager->dbSize = mxPg;
if( pPager->mxPgno<mxPg ){
pPager->mxPgno = mxPg;
}
}
/* Copy original pages out of the journal and back into the