Re: [sqlite] Implementing xLock/xUnlock VFS methods...

2020-01-08 Thread Dan Kennedy
On 8/1/63 22:41, J Decker wrote: On Wed, Jan 8, 2020 at 7:10 AM Dan Kennedy wrote: On 8/1/63 20:29, J Decker wrote: The documentation isn't very clear on what the intent of an xUnlock( SQLITE_LOCK_NONE ) is intended to do. Is it unlock everything? Is it the same as remove a shared lock?

Re: [sqlite] Implementing xLock/xUnlock VFS methods...

2020-01-08 Thread J Decker
On Wed, Jan 8, 2020 at 7:10 AM Dan Kennedy wrote: > > On 8/1/63 20:29, J Decker wrote: > > The documentation isn't very clear on what the intent of an xUnlock( > > SQLITE_LOCK_NONE ) is intended to do. Is it unlock everything? Is it the > > same as remove a shared lock? > > That's right.

Re: [sqlite] Implementing xLock/xUnlock VFS methods...

2020-01-08 Thread Dan Kennedy
On 8/1/63 20:29, J Decker wrote: The documentation isn't very clear on what the intent of an xUnlock( SQLITE_LOCK_NONE ) is intended to do. Is it unlock everything? Is it the same as remove a shared lock? That's right. xUnlock(fd, SQLITE_LOCK_NONE) should completely unlock the file.

[sqlite] Implementing xLock/xUnlock VFS methods...

2020-01-08 Thread J Decker
The documentation isn't very clear on what the intent of an xUnlock( SQLITE_LOCK_NONE ) is intended to do. Is it unlock everything? Is it the same as remove a shared lock? The first few operations are xLock( SQLITE_LOCK_SHARED ) followed by xUnlock(SQLITE_LOCK_NONE)... sqlite.h.in