summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-18 02:15:04 +0000
committerJeremy Allison <jra@samba.org>2002-01-18 02:15:04 +0000
commit3a851587f834293857304aab6338bc4d95529aa7 (patch)
treeee7f93df0c644fd06a587aa10c8750012ff3c943 /source3
parent2a3673994d9574068b5fce5d694b1183b9c67395 (diff)
downloadsamba-3a851587f834293857304aab6338bc4d95529aa7.tar.gz
samba-3a851587f834293857304aab6338bc4d95529aa7.tar.bz2
samba-3a851587f834293857304aab6338bc4d95529aa7.zip
Ensure we log tdb open fails. Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Jeremy. (This used to be commit eb99e7f29c2d6041054331425cb245da86bedaa4)
Diffstat (limited to 'source3')
-rw-r--r--source3/tdb/tdbutil.c6
1 files changed, 2 insertions, 4 deletions
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;
}