mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix an assert() in sqlite3WalRead().
FossilOrigin-Name: 2e7a0050e192dd197d4db92393ab120897c14836
This commit is contained in:
@@ -912,7 +912,7 @@ int sqlite3WalRead(Wal *pWal, Pgno pgno, int *pInWal, u8 *pOut){
|
||||
u32 *aData;
|
||||
int iFrame = (pWal->hdr.iLastPg & 0xFFFFFF00);
|
||||
|
||||
assert( pWal->lockState==SQLITE_SHM_READ );
|
||||
assert( pWal->lockState==SQLITE_SHM_READ||pWal->lockState==SQLITE_SHM_WRITE );
|
||||
walIndexMap(pWal);
|
||||
|
||||
/* Do a linear search of the unindexed block of page-numbers (if any)
|
||||
|
Reference in New Issue
Block a user