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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user