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

Make sure the pager cache is cleared if there is any difficulty starting

a new read transaction in WAL mode.  Ticket [313723c356483eff2a4c4bdd2c].

FossilOrigin-Name: e14ef0e8b4a27dbd58338214242eb3928404b176
This commit is contained in:
drh
2010-09-18 19:36:40 +00:00
parent 51f0698d6d
commit 92683f5462
3 changed files with 19 additions and 9 deletions

View File

@@ -2971,7 +2971,7 @@ static int pagerBeginReadTransaction(Pager *pPager){
sqlite3WalEndReadTransaction(pPager->pWal);
rc = sqlite3WalBeginReadTransaction(pPager->pWal, &changed);
if( rc==SQLITE_OK && changed ){
if( rc!=SQLITE_OK || changed ){
pager_reset(pPager);
}