diff options
author | drh <drh@noemail.net> | 2010-05-31 14:39:31 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-05-31 14:39:31 +0000 |
commit | 18b7f604aa5c9e7f7b64f20b1e9831a17aa586a5 (patch) | |
tree | f683e4c7244dff65ef4758ab31584bd05ddf3aaf /src/wal.c | |
parent | 4222441deeb5b9393aa57d6bb8bf0792df3b53af (diff) | |
download | sqlite-18b7f604aa5c9e7f7b64f20b1e9831a17aa586a5.tar.gz sqlite-18b7f604aa5c9e7f7b64f20b1e9831a17aa586a5.zip |
Make sure WAL alway requests enough shared-memory space.
FossilOrigin-Name: 138f128317b6695530ca3fde7be4cdf22548cd22
Diffstat (limited to 'src/wal.c')
-rw-r--r-- | src/wal.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1696,7 +1696,7 @@ static int walTryBeginRead(Wal *pWal, int *pChanged, int useWal){ } } }else{ - rc = walIndexMap(pWal, pWal->hdr.mxFrame); + rc = walIndexMap(pWal, walMappingSize(pWal->hdr.mxFrame)); } if( rc!=SQLITE_OK ){ return rc; @@ -1995,7 +1995,7 @@ int sqlite3WalBeginWriteTransaction(Wal *pWal){ ** time the read transaction on this connection was started, then ** the write is disallowed. */ - rc = walIndexMap(pWal, pWal->hdr.mxFrame); + rc = walIndexMap(pWal, walMappingSize(pWal->hdr.mxFrame)); if( rc ){ walUnlockExclusive(pWal, WAL_WRITE_LOCK, 1); pWal->writeLock = 0; |