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

Fix an assert that fired incorrectly when PRAGMA omit_readlock was set.

FossilOrigin-Name: e068758222bcd3f2367e9346f7154780cd395ddd
This commit is contained in:
shaneh
2010-11-09 20:33:33 +00:00
parent 050d09abdc
commit eb5dae1a65
3 changed files with 8 additions and 8 deletions

View File

@@ -6571,7 +6571,7 @@ static int pagerOpenWal(Pager *pPager){
int rc = SQLITE_OK;
assert( pPager->pWal==0 && pPager->tempFile==0 );
assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK );
assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK || pPager->noReadlock);
/* If the pager is already in exclusive-mode, the WAL module will use
** heap-memory for the wal-index instead of the VFS shared-memory