aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os_unix.c4
-rw-r--r--src/wal.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index decf2efc8..d991ec9d5 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4984,13 +4984,13 @@ static int unixShmOpen(
pFile->h = open(zName, O_RDWR|O_CREAT, 0664);
if( pFile->h<0 ){
- rc = SQLITE_CANTOPEN;
+ rc = SQLITE_CANTOPEN_BKPT;
goto shm_open_err;
}
rc = fstat(pFile->h, &sStat);
if( rc ){
- rc = SQLITE_CANTOPEN;
+ rc = SQLITE_CANTOPEN_BKPT;
goto shm_open_err;
}
pFile->fid.dev = sStat.st_dev;
diff --git a/src/wal.c b/src/wal.c
index 38bbe458c..30af69ff6 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -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;
}