aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2010-04-30 17:05:23 +0000
committerdan <dan@noemail.net>2010-04-30 17:05:23 +0000
commitfe05aa144cc48632ed4af3e90dbaac3b8d0ef317 (patch)
tree4a1d7da12909f06c01de09b935d3998ced3d9d71 /src
parentc9d53dbe5a232b81f33cabff27746a1052264edd (diff)
downloadsqlite-fe05aa144cc48632ed4af3e90dbaac3b8d0ef317.tar.gz
sqlite-fe05aa144cc48632ed4af3e90dbaac3b8d0ef317.zip
Fix a problem with resizing the wal-index mapping after the mapping has been extended by an external process.
FossilOrigin-Name: 79d356fea6008a8adf8ebd4906571375f3cf5213
Diffstat (limited to 'src')
-rw-r--r--src/wal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wal.c b/src/wal.c
index 3ac18c74d..d406383a2 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -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);
}