summaryrefslogtreecommitdiffstats
path: root/source/tdb
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
commiteb99e7f29c2d6041054331425cb245da86bedaa4 (patch)
tree3d8401a7697646ec016d468e63635951840f0df5 /source/tdb
parent9a969069f132019cdd8a11be2b00356a3f09b64d (diff)
downloadsamba-eb99e7f29c2d6041054331425cb245da86bedaa4.tar.gz
samba-eb99e7f29c2d6041054331425cb245da86bedaa4.tar.xz
samba-eb99e7f29c2d6041054331425cb245da86bedaa4.zip
Ensure we log tdb open fails. Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Jeremy.
Diffstat (limited to 'source/tdb')
-rw-r--r--source/tdb/tdbutil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/tdb/tdbutil.c b/source/tdb/tdbutil.c
index ac3c5336f12..87dabf165d4 100644
--- a/source/tdb/tdbutil.c
+++ b/source/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;
}