[PATCH] lib/tdb: TDB_TRACE support (for developers)

Rusty Russell rusty at rustcorp.com.au
Thu Aug 27 23:14:59 MDT 2009


On Fri, 28 Aug 2009 02:38:51 pm Volker Lendecke wrote:
> On Fri, Aug 28, 2009 at 02:25:45PM +0930, Rusty Russell wrote:
> > +#ifdef TDB_TRACE
> > +	{
> > +		char tracefile[strlen(name) + 32];
> > +
> > +		snprintf(tracefile, sizeof(tracefile),
> > +			 "%s.trace.%li", name, (long)getpid());
> 
> Do we have variable array sizes available everywhere?

I figured it doesn't matter, since it's under TDB_TRACE and it will break
obviously if not supported?

I'm assuming that only developers want their tdb to run this slowly :)

Thanks,
Rusty.


More information about the samba-technical mailing list