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

When an error occurs while transitioning out of WAL mode, make sure the

locking state is not left at EXCLUSIVE.

FossilOrigin-Name: 3340f086510b08ce5b42a8781f1df51bf7c27701
This commit is contained in:
drh
2016-04-20 19:30:47 +00:00
parent 333f80562b
commit cdce61e133
3 changed files with 8 additions and 7 deletions

View File

@@ -7311,6 +7311,7 @@ int sqlite3PagerCloseWal(Pager *pPager){
pPager->pageSize, (u8*)pPager->pTmpSpace);
pPager->pWal = 0;
pagerFixMaplimit(pPager);
if( rc && !pPager->exclusiveMode ) pagerUnlockDb(pPager, SHARED_LOCK);
}
}
return rc;