diff options
Diffstat (limited to 'src/os_win.c')
-rw-r--r-- | src/os_win.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_win.c b/src/os_win.c index 217a61cbb..b729c0f68 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -420,6 +420,7 @@ int sqlite3OsLock(OsFile *id, int locktype){ ** a SHARED lock. If we are acquiring a SHARED lock, the acquisition of ** the PENDING_LOCK byte is temporary. */ + newLocktype = id->locktype; if( id->locktype==NO_LOCK || (locktype==EXCLUSIVE_LOCK && id->locktype==RESERVED_LOCK) ){ @@ -536,7 +537,7 @@ int sqlite3OsCheckReservedLock(OsFile *id){ int sqlite3OsUnlock(OsFile *id, int locktype){ int rc, type; assert( locktype<=SHARED_LOCK ); - TRACE4("UNLOCK %d to %d was %d(%d)\n", id->h, locktype, + TRACE5("UNLOCK %d to %d was %d(%d)\n", id->h, locktype, id->locktype, id->sharedLockByte); type = id->locktype; if( type>=EXCLUSIVE_LOCK ){ |