diff options
author | dan <dan@noemail.net> | 2010-04-30 17:05:23 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-04-30 17:05:23 +0000 |
commit | fe05aa144cc48632ed4af3e90dbaac3b8d0ef317 (patch) | |
tree | 4a1d7da12909f06c01de09b935d3998ced3d9d71 /src | |
parent | c9d53dbe5a232b81f33cabff27746a1052264edd (diff) | |
download | sqlite-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |