tdb_delete marking records as dead?

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Mar 6 10:27:26 GMT 2007


On Tue, Mar 06, 2007 at 10:46:56AM +0100, Volker Lendecke wrote:
> On Tue, Mar 06, 2007 at 02:46:51PM +1100, tridge at samba.org wrote:
> > I suspect the other big win would be to use futexes (where
> > available). It isn't an easy API to use though.
> 
> I would give it a try, but I am still missing one critical
> piece of information: How do futexes behave under process
> crashes? If a process holding a lock implemented by a futex
> crashes, is this properly cleaned up?

Ok, google with "futex cleanup" helped. It seems that 2.6.17
has added a "robust futex" API. This looks complex, but not
having to do a fcntl into the kernel for a
get_share_mode_lock() might be worth it :-)

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070306/989e0013/attachment.bin


More information about the samba-technical mailing list