mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-15 11:41:13 +03:00
In windows, ignore ERROR_NOT_LOCKED when calling the read-lock removal
routine. FossilOrigin-Name: f55156c5194e85c47728b8a97fde3e5f0a5c9b56
This commit is contained in:
@@ -1052,7 +1052,7 @@ static int unlockReadLock(winFile *pFile){
|
||||
res = UnlockFile(pFile->h, SHARED_FIRST + pFile->sharedLockByte, 0, 1, 0);
|
||||
#endif
|
||||
}
|
||||
if( res == 0 ){
|
||||
if( res==0 && GetLastError()!=ERROR_NOT_LOCKED ){
|
||||
pFile->lastErrno = GetLastError();
|
||||
winLogError(SQLITE_IOERR_UNLOCK, "unlockReadLock", pFile->zPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user