[PATCH] TDB cleanups and enhancements

Rusty Russell rusty at rustcorp.com.au
Thu Aug 27 20:25:34 MDT 2009


Hi all,

   More tdb work.  First patch is a repost (TDB_TRACE), next is a cleanup,
then a futureproof change, then another cleanup, then finally a new hook for
intercepting locking so we cleanly do non-blocking tdbs and lock handoff
(where a child process gets a lock for us).

Not sure if I should be pinging someone directly to apply these...

Thanks!
Rusty.

Rusty Russell (5):
  lib/tdb: TDB_TRACE support (for developers)
  lib/tdb: wean off TDB_ERRCODE.
  lib/tdb: don't overwrite TDBs with different version numbers.
  lib/tdb: locking cleanup
  lib/tdb: new locking hook.

 lib/tdb/common/freelist.c      |    5 +-
 lib/tdb/common/freelistcheck.c |    6 +-
 lib/tdb/common/io.c            |   38 +++--
 lib/tdb/common/lock.c          |  326 +++++++++++++++++++++++++++++-----------
 lib/tdb/common/open.c          |   88 +++++++++--
 lib/tdb/common/tdb.c           |  244 ++++++++++++++++++++++++++----
 lib/tdb/common/tdb_private.h   |   59 +++++++-
 lib/tdb/common/transaction.c   |  119 ++++++++++-----
 lib/tdb/common/traverse.c      |   30 +++-
 lib/tdb/docs/README            |   32 ++++
 lib/tdb/include/tdb.h          |   26 +++-
 11 files changed, 770 insertions(+), 203 deletions(-)



More information about the samba-technical mailing list