mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
Ensure we log tdb open fails. Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Jeremy.
This commit is contained in:
parent
9a969069f1
commit
eb99e7f29c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user