On Sat, May 16, 2015 at 7:45 PM, Ivan Zhakov <i...@visualsvn.com> wrote:

> On 16 May 2015 at 07:48, Stefan Fuhrmann <stefan.fuhrm...@wandisco.com>
> wrote:
> > On Fri, May 15, 2015 at 7:25 PM, Philip Martin <
> philip.mar...@wandisco.com>
> > wrote:
> >> Another issue: find_entry() now calls drop_entry() in more cases and can
> >> now call it when find_empty==FALSE during read operations.  On Unix when
> >> using the read-write lock this means the cache gets modified while only
> >> holding a read lock, not a write lock, and that can corrupt the cache.
> >>
> As far I understand find_entry(find_empty == TRUE) requires write-lock
> for cache, while only read-lock is required for find_empty == FALSE.
> Is correct? It would be nice to document this in docstring.
>

Done in r1679866.

-- Stefan^2.

Reply via email to