?4?7?(??)?21:35
??:Re: [sqlite] Why SQLite lock 510 bytes for shared lock?
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
On 4/7/16, sanhua.zh wrote:
>
> But I think lock a random byte from ?shared byterange? is enough to
> implement the shared file lock. Locking whole 510 bytes may take a lower
> performance. Why do you do so?
>
On linux, the time needed to take a file lock is constant, regardless
of how many
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?.
It makes me confused. Which one does the right
On 4/7/16, sanhua.zh 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
4 matches
Mail list logo