diff options
author | drh <drh@noemail.net> | 2017-12-13 10:11:09 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-12-13 10:11:09 +0000 |
commit | 37874b5f7466564081adbfa146caa3337062477a (patch) | |
tree | 456efad15017aed7c32876b956ce2277ab90c59f /src/os_unix.c | |
parent | 2e6ca188c49e54bd8ffb6917b055c93644437ff9 (diff) | |
download | sqlite-37874b5f7466564081adbfa146caa3337062477a.tar.gz sqlite-37874b5f7466564081adbfa146caa3337062477a.zip |
Minor enhancement to two assert() statements in the default VFSes.
FossilOrigin-Name: 9cede8a83ca4cd88d504050115e1e89e7b3d3cd3cb2ffb5b8961e311a23ff5e2
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 6ba4a5645..3c2f15ed0 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4165,7 +4165,7 @@ static int unixShmSystemLock( /* Access to the unixShmNode object is serialized by the caller */ pShmNode = pFile->pInode->pShmNode; - assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 ); + assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->mutex) ); /* Shared locks never span more than one byte */ assert( n==1 || lockType!=F_RDLCK ); |