diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os_unix.c | 2 | ||||
-rw-r--r-- | src/wal.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 8480b5f44..fee07cb27 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5083,7 +5083,7 @@ static int unixShmClose(sqlite3_shm *pSharedMem){ ** written into pNewSize. A writer lock is held on the shared memory ** segment while resizing it. ** -** If ppBuffer is not NULL, the a reader lock is acquired no the shared +** If ppBuffer is not NULL, the a reader lock is acquired on the shared ** memory segment and *ppBuffer is made to point to the start of the ** shared memory segment. xShmRelease() must be called to release the ** lock. @@ -889,6 +889,8 @@ int sqlite3WalOpenSnapshot(Wal *pWal, int *pChanged){ } } } + + walIndexUnmap(pWal); return rc; } @@ -1082,6 +1084,7 @@ int sqlite3WalFrames( assert( WAL_FRAME_HDRSIZE==(4 * 2 + 2*sizeof(u32)) ); assert( pList ); assert( pWal->lockState==SQLITE_SHM_WRITE ); + assert( pWal->pWiData==0 ); /* If this is the first frame written into the log, write the log ** header to the start of the log file. See comments at the top of @@ -1158,6 +1161,7 @@ int sqlite3WalFrames( return rc; } } + assert( pWal->pWiData==0 ); /* Append data to the log summary. It is not necessary to lock the ** wal-index to do this as the RESERVED lock held on the db file |