diff options
author | dan <dan@noemail.net> | 2020-09-04 17:30:59 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2020-09-04 17:30:59 +0000 |
commit | 2b06b0769ed38e408b4d28406db44cda44bdbbcd (patch) | |
tree | a6cb364f5cf612762d5aea55100da3e8cba673e5 /src/os_unix.c | |
parent | 52cfe0312a3e26267635d7bc06f145e62e9183ce (diff) | |
download | sqlite-2b06b0769ed38e408b4d28406db44cda44bdbbcd.tar.gz sqlite-2b06b0769ed38e408b4d28406db44cda44bdbbcd.zip |
Ensure that the busy-handler count is reset at the end of each sqlite3_file_control() and sqlite3_prepare() (and _v2() and _v3()).
FossilOrigin-Name: 5dd05940617fb05ee2faf212b15afc3a8e9695318eccb76761b37359fea681d1
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 5419a042a..ac5c33e82 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -2145,6 +2145,7 @@ static int unixClose(sqlite3_file *id){ } sqlite3_mutex_leave(pInode->pLockMutex); releaseInodeInfo(pFile); + assert( pFile->pShm==0 ); rc = closeUnixFile(id); unixLeaveMutex(); return rc; |