r16774: This patch modifies the tdb API to allow the logging function to be used
authorAndrew Bartlett <abartlet@samba.org>
Mon, 3 Jul 2006 06:40:56 +0000 (06:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:09:45 +0000 (14:09 -0500)
commitd3fee429aee87e9c05a4a606fbf0b60b16dac782
tree792984356cd682124de421c8d9852cfb7ddc8bff
parentfcce0991c29338a63e3e1e50815eb981a2fa113c
r16774: This patch modifies the tdb API to allow the logging function to be used
as part of ldb.

This allows tdb failures to be passed all the way up to Samba's DEBUG
system, which allowed easier debugging.

Unfortunately I had to extend the tdb API, as the logging function
didn't have a context pointer.

I've worked over the 'debug levels' in TDB.  Most of them were 0,
which didn't seem right, as some were trace-like messages.  We didn't
see any of these previously, except when accessing TDB directly.

Andrew Bartlett
(This used to be commit 58898092c1ce043f6d698db5065f372b79109e22)
15 files changed:
source4/lib/db_wrap.c
source4/lib/ldb/ldb_tdb/ldb_tdb.c
source4/lib/ldb/ldb_tdb/ldb_tdb.h
source4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
source4/lib/tdb/common/freelist.c
source4/lib/tdb/common/io.c
source4/lib/tdb/common/lock.c
source4/lib/tdb/common/open.c
source4/lib/tdb/common/tdb.c
source4/lib/tdb/common/tdb_private.h
source4/lib/tdb/common/transaction.c
source4/lib/tdb/common/traverse.c
source4/lib/tdb/include/tdb.h
source4/lib/tdb/tools/tdbtool.c
source4/lib/tdb/tools/tdbtorture.c