[RFC] tdb_traverse_read_lite()

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Feb 28 04:02:19 MST 2013


On Wed, Feb 27, 2013 at 07:56:17PM -0800, Jeremy Allison wrote:
> On Thu, Feb 28, 2013 at 02:11:18PM +1030, Rusty Russell wrote:
> > Amitay asked me to look at a lightweight traverse for tdb.  This is my
> > first attempt (against his ctdb tree, but it's pretty simple).
> > 
> > Normal traverse drops the chain lock when calling the callback, and thus
> > has to handle deleting the record while it's traversing, which it does
> > by grabbing a lock on the record itself, which is then tested in
> > delete...
> > 
> > For simple callback functions, that's overkill.  So I implemented that
> > to measure performance.
> > 
> > >From 1de5f5259caa4c34a5d66d1d09c986a5de98f6ef Mon Sep 17 00:00:00 2001
> > From: Rusty Russell <rusty at rustcorp.com.au>
> > Date: Thu, 28 Feb 2013 14:06:53 +1030
> > Subject: [PATCH] tdb_traverse_read_lite(): lightweight traverse for tdb.
> 
> Ok, nice idea but you should be flogged soundly for calling
> it 'read_*LITE*' :-). It's read_light() you monster.
> 
> Or when you relax do you turn on your 'brite nite lite' whilst

... and enjoy your Vegemight :-)

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de

**********************************************************
visit us at CeBIT: March 5th - 9th 2013, hall 6, booth E15
all about SAMBA and verinice, firewalls, Linux and Windows
free tickets available via email here : cebit at sernet.com !
**********************************************************


More information about the samba-technical mailing list