On 4/7/16, sanhua.zh <sanhua.zh at foxmail.com> wrote:
> I found the code and the comment at [unixLock] of os_unix.h is different.
> The comment say that a shared lock will lock a random byte from ?shared byte
> range?(which is 510 bytes length). But the code show that it locks the whole
> ?shared byte range?.

The comment is legacy from the locking protocol used by Windows95,
which lacks the ability to do a shared file lock.  I'll fix the
comment.
-- 
D. Richard Hipp
drh at sqlite.org

Reply via email to