aboutsummaryrefslogtreecommitdiff
path: root/src/os_win.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2004-06-12 02:17:14 +0000
committerdrh <drh@noemail.net>2004-06-12 02:17:14 +0000
commit3cde3bb0da88b91aa66d02607e663e44ee091bbb (patch)
tree565b3ae4a9109564af96b562c8b80c50da932d41 /src/os_win.c
parent2a764eb0cd9755ff464c9ef7c900e3fd8feef0cc (diff)
downloadsqlite-3cde3bb0da88b91aa66d02607e663e44ee091bbb.tar.gz
sqlite-3cde3bb0da88b91aa66d02607e663e44ee091bbb.zip
Bug fix in the unix locking code. (CVS 1574)
FossilOrigin-Name: dcad244f58453d23f2bcb749dcea077434bbd08c
Diffstat (limited to 'src/os_win.c')
-rw-r--r--src/os_win.c3
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 ){