aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2025-01-20 19:19:31 +0000
committerdrh <>2025-01-20 19:19:31 +0000
commitc69d537b93c85222ca8d44287b4167a2b28d1145 (patch)
tree236c65bda5271018fcdd5fb06387948d43d4585d /src
parent467e20ad1d579cf8a405a715e250d12ff25de952 (diff)
downloadsqlite-c69d537b93c85222ca8d44287b4167a2b28d1145.tar.gz
sqlite-c69d537b93c85222ca8d44287b4167a2b28d1145.zip
Remove an assert() in the unix file locking logic that is not true
if alternative VFS "unix-excl" is used for a read-only connection. FossilOrigin-Name: bd5dc92368e41231a07bb59dd3db8942e238129ec7a3c8d785459d9b62bfcba3
Diffstat (limited to 'src')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index b1996278c..c897895d7 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1664,7 +1664,7 @@ static int unixFileLock(unixFile *pFile, struct flock *pLock){
if( (pFile->ctrlFlags & (UNIXFILE_EXCL|UNIXFILE_RDONLY))==UNIXFILE_EXCL ){
if( pInode->bProcessLock==0 ){
struct flock lock;
- assert( pInode->nLock==0 );
+ /* assert( pInode->nLock==0 ); <-- Not true if unix-excl READONLY used */
lock.l_whence = SEEK_SET;
lock.l_start = SHARED_FIRST;
lock.l_len = SHARED_SIZE;