mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-04 04:42:17 +03:00
Fix a problem with resizing the wal-index mapping after the mapping has been extended by an external process.
FossilOrigin-Name: 79d356fea6008a8adf8ebd4906571375f3cf5213
This commit is contained in:
@@ -926,7 +926,7 @@ int sqlite3WalOpenSnapshot(Wal *pWal, int *pChanged){
|
||||
}else{
|
||||
/* Check if the mapping needs to grow. */
|
||||
if( pWal->hdr.iLastPg
|
||||
&& walIndexEntry(pWal->hdr.iLastPg)>=pWal->szWIndex
|
||||
&& walIndexEntry(pWal->hdr.iLastPg)*sizeof(u32)>=pWal->szWIndex
|
||||
){
|
||||
walIndexRemap(pWal, -1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user