mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Add a missing walIndexUnmap() call to the checkpoint code. Change a couple of SQLITE_CANTOPEN constants to SQLITE_CANTOPEN_BKPT.
FossilOrigin-Name: 1f9e8c5c27ae2c68bc01d8e2bb2c662be7b3f161
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user