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