summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-03-12 13:56:09 +0000
committerMichael Adam <obnox@samba.org>2015-03-17 11:30:51 +0100
commit47795aef9dcead38a6365d655f82262cdca710c8 (patch)
treeff6ea83108ce810efb952a7c5554c0314085c81b /source3/lib
parente3e0af14e176e69743223ebb43f21e4eef420ba2 (diff)
downloadsamba-47795aef9dcead38a6365d655f82262cdca710c8.tar.gz
lib: Remove tdb_open_compat
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_tdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c
index 38c5fa0acd9..f30cccabb7e 100644
--- a/source3/lib/util_tdb.c
+++ b/source3/lib/util_tdb.c
@@ -323,6 +323,7 @@ TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags,
int open_flags, mode_t mode)
{
TDB_CONTEXT *tdb;
+ struct tdb_logging_context log_ctx = { .log_fn = tdb_log };
if (!lp_use_mmap())
tdb_flags |= TDB_NOMMAP;
@@ -338,8 +339,8 @@ TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags,
hash_size = lp_parm_int(-1, "tdb_hashsize", base, 0);
}
- tdb = tdb_open_compat(name, hash_size, tdb_flags,
- open_flags, mode, tdb_log, NULL);
+ tdb = tdb_open_ex(name, hash_size, tdb_flags,
+ open_flags, mode, &log_ctx, NULL);
if (!tdb)
return NULL;