mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
Ensure we log tdb open fails. Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Jeremy. (This used to be commit eb99e7f29c2d6041054331425cb245da86bedaa4)
This commit is contained in:
parent
2a3673994d
commit
3a851587f8
@ -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