1
0
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:
drh
2011-04-27 19:54:44 +00:00
parent 840561f2a4
commit 4d953fd5b1
3 changed files with 8 additions and 8 deletions

View File

@@ -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);
}