summaryrefslogtreecommitdiff
path: root/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-06-19 12:43:10 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-06-19 05:38:07 +0200
commitdf4a6e82280845668dee6fe10f2025c9fa2b958c (patch)
treecebea2bd54ebe0e9e9efba35b687732d4d7d343a /lib/ldb/ldb_tdb/ldb_tdb_wrap.c
parent6dc02e832a57a9af882bbb94dfa56bfdabb70eb8 (diff)
downloadsamba-df4a6e82280845668dee6fe10f2025c9fa2b958c.tar.gz
samba-df4a6e82280845668dee6fe10f2025c9fa2b958c.tar.bz2
samba-df4a6e82280845668dee6fe10f2025c9fa2b958c.zip
ldb: use tdb directly, not tdb_compat.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/ldb/ldb_tdb/ldb_tdb_wrap.c')
-rw-r--r--lib/ldb/ldb_tdb/ldb_tdb_wrap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ldb/ldb_tdb/ldb_tdb_wrap.c b/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
index 014a756d6e..eb168098a7 100644
--- a/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
+++ b/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
@@ -99,6 +99,7 @@ struct tdb_context *ltdb_wrap_open(TALLOC_CTX *mem_ctx,
struct ldb_context *ldb)
{
struct ltdb_wrap *w;
+ struct tdb_logging_context lctx;
struct stat st;
if (stat(path, &st) == 0) {
@@ -117,7 +118,10 @@ struct tdb_context *ltdb_wrap_open(TALLOC_CTX *mem_ctx,
return NULL;
}
- w->tdb = tdb_open_compat(path, hash_size, tdb_flags, open_flags, mode, ltdb_log_fn, ldb);
+ lctx.log_fn = ltdb_log_fn;
+ lctx.log_private = ldb;
+ w->tdb = tdb_open_ex(path, hash_size, tdb_flags, open_flags, mode,
+ &lctx, NULL);
if (w->tdb == NULL) {
talloc_free(w);
return NULL;