Am I going mad or does TDB allow multiple writers to update the freelist?

Richard Sharpe realrichardsharpe at gmail.com
Tue Jan 20 22:15:50 GMT 2009


On 1/20/09, Richard Sharpe <realrichardsharpe at gmail.com> wrote:
> On 1/20/09, Volker Lendecke <Volker.Lendecke at sernet.de> wrote:
>  > On Tue, Jan 20, 2009 at 01:52:55PM -0800, Richard Sharpe wrote:
>  >  > Am I reading this correctly? Are we allowing another process to take
>  >  > the free list lock when it is already locked? Surely I have missed
>  >  > something here.
>  >
>  >
>  > The free list is only ever locked by one process. That's why
>  >  I added the TDB_VOLATILE flag. Reduce the contention on the
>  >  freelist for locking.tdb.
>
>
> OK, so I must have missed the code that guarantees that only one
>  process ever locks it.
>
>  Can you point me at it?

To be clear, I am looking at the Samba 3.0.x code stream, but I just
pulled down tdb-1.0.6 to look at its code as well, and the same issue
seems to be there.

-- 
Regards,
Richard Sharpe


More information about the samba-technical mailing list