From 3a851587f834293857304aab6338bc4d95529aa7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 18 Jan 2002 02:15:04 +0000 Subject: Ensure we log tdb open fails. Patch from Alexander Bokovoy Jeremy. (This used to be commit eb99e7f29c2d6041054331425cb245da86bedaa4) --- source3/tdb/tdbutil.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c index ac3c5336f1..87dabf165d 100644 --- a/source3/tdb/tdbutil.c +++ b/source3/tdb/tdbutil.c @@ -489,13 +489,11 @@ TDB_CONTEXT *tdb_open_log(char *name, int hash_size, int tdb_flags, if (!lp_use_mmap()) tdb_flags |= TDB_NOMMAP; - tdb = tdb_open(name, hash_size, tdb_flags, - open_flags, mode); + tdb = tdb_open_ex(name, hash_size, tdb_flags, + open_flags, mode, tdb_log); if (!tdb) return NULL; - tdb_logging_function(tdb, tdb_log); - return tdb; } -- cgit