[PATCH] lib/tdb: TDB_ALLOW_NESTING flag (port from ctdb)

tridge at samba.org tridge at samba.org
Sun Aug 16 23:40:39 MDT 2009

Hi Rusty,

I think this is a good patch and it should go in.

Volker, are you happy with this approach? For the example of registry
initialisation that you gave previously (an example of a good use of
transaction nesting btw), you could do this:

  tdb_add_flags(tdb, TDB_ALLOW_NESTING);
  tdb_remove_flags(tdb, TDB_ALLOW_NESTING);

That will give you the speed while still allowing us to prevent this
API oddity from people out like it caught Ronnie.

Cheers, Tridge

More information about the samba-technical mailing list