diff options
author | drh <drh@noemail.net> | 2009-03-28 23:47:10 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-03-28 23:47:10 +0000 |
commit | f48f9ca65c574e522d68bd7473defcebbb8d5ea3 (patch) | |
tree | e7a49ddc4a1a1296166fdc75392ea0d676f45848 /src | |
parent | cd731cf540bcf9a669f2e6370e7c19e34141708a (diff) | |
download | sqlite-f48f9ca65c574e522d68bd7473defcebbb8d5ea3.tar.gz sqlite-f48f9ca65c574e522d68bd7473defcebbb8d5ea3.zip |
Previous commit ((6401)) did not quite fix the problem. This should work
better. (CVS 6402)
FossilOrigin-Name: 2e7d3cc9f04de1fe7ef95cd5736dbc409c209cef
Diffstat (limited to 'src')
-rw-r--r-- | src/os_unix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 576d69f27..ddf7b2212 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -43,7 +43,7 @@ ** * Definitions of sqlite3_vfs objects for all locking methods ** plus implementations of sqlite3_os_init() and sqlite3_os_end(). ** -** $Id: os_unix.c,v 1.246 2009/03/28 23:23:03 drh Exp $ +** $Id: os_unix.c,v 1.247 2009/03/28 23:47:11 drh Exp $ */ #include "sqliteInt.h" #if SQLITE_OS_UNIX /* This file is used on unix only */ @@ -1481,7 +1481,8 @@ static int unixUnlock(sqlite3_file *id, int locktype){ pFile->lastErrno = tErrno; } pLock->cnt = 1; - pLock->locktype = locktype; + pLock->locktype = NO_LOCK; + pFile->locktype = NO_LOCK; goto end_unlock; } } |