1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Add an assert() in the Win32 VFS.

FossilOrigin-Name: 22e58330461736ca22d6f4d7eab897a3597de2e7434a6f4a474f0f0d7f964281
This commit is contained in:
mistachkin
2017-11-09 20:37:37 +00:00
parent e941877806
commit 95a05aae67
3 changed files with 9 additions and 8 deletions

View File

@@ -3885,6 +3885,7 @@ static int winGetShmDmsLockType(
if( winIsLockConflict(lastErrno) ){
if( pLockType ) *pLockType = WINSHM_WRLCK;
}else if( winIsLockMissing(lastErrno) ){
assert( bReadOnly );
if( pLockType ) *pLockType = WINSHM_UNLCK;
}else{
return SQLITE_IOERR_READ;