mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
dbwrap3: Call dbwrap_local_open with the correct hash size
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
f542552e1d
commit
247563e10b
@ -182,6 +182,11 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx,
|
||||
|
||||
if (result == NULL) {
|
||||
struct loadparm_context *lp_ctx = loadparm_init_s3(mem_ctx, loadparm_s3_helpers());
|
||||
|
||||
if (hash_size == 0) {
|
||||
hash_size = lpcfg_tdb_hash_size(lp_ctx, name);
|
||||
}
|
||||
|
||||
result = dbwrap_local_open(mem_ctx, lp_ctx, name, hash_size,
|
||||
tdb_flags, open_flags, mode,
|
||||
lock_order, dbwrap_flags);
|
||||
|
Loading…
Reference in New Issue
Block a user