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)
commit58898092c1ce043f6d698db5065f372b79109e22
tree440be684d1534102d938f2c30c3c639e234f7fc0
parentc50095efabb62fbed2e4df7e883df1054e4d92c9
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
15 files changed:
source/lib/db_wrap.c
source/lib/ldb/ldb_tdb/ldb_tdb.c
source/lib/ldb/ldb_tdb/ldb_tdb.h
source/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
source/lib/tdb/common/freelist.c
source/lib/tdb/common/io.c
source/lib/tdb/common/lock.c
source/lib/tdb/common/open.c
source/lib/tdb/common/tdb.c
source/lib/tdb/common/tdb_private.h
source/lib/tdb/common/transaction.c
source/lib/tdb/common/traverse.c
source/lib/tdb/include/tdb.h
source/lib/tdb/tools/tdbtool.c
source/lib/tdb/tools/tdbtorture.c