diff options
author | dan <dan@noemail.net> | 2010-04-30 11:43:28 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-04-30 11:43:28 +0000 |
commit | 87bfb51ef884c59347911133838fe09ffece45d6 (patch) | |
tree | 2ab3f0585d77f81d2af1c249060695781d0852c7 /src/wal.c | |
parent | 1bc6171c231ef92411b24dcac4f6833b53e31565 (diff) | |
download | sqlite-87bfb51ef884c59347911133838fe09ffece45d6.tar.gz sqlite-87bfb51ef884c59347911133838fe09ffece45d6.zip |
Add a missing walIndexUnmap() call to the checkpoint code. Change a couple of SQLITE_CANTOPEN constants to SQLITE_CANTOPEN_BKPT.
FossilOrigin-Name: 1f9e8c5c27ae2c68bc01d8e2bb2c662be7b3f161
Diffstat (limited to 'src/wal.c')
-rw-r--r-- | src/wal.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -567,7 +567,7 @@ int sqlite3WalOpen( int nWal; /* Length of zWal in bytes */ assert( zDb ); - if( pVfs->xShmOpen==0 ) return SQLITE_CANTOPEN; + if( pVfs->xShmOpen==0 ) return SQLITE_CANTOPEN_BKPT; /* Allocate an instance of struct Wal to return. */ *ppWal = 0; @@ -1237,6 +1237,7 @@ int sqlite3WalCheckpoint( } /* Release the locks. */ + walIndexUnmap(pWal); walSetLock(pWal, SQLITE_SHM_UNLOCK); return rc; } |