From: Ralph Boehme Date: Thu, 9 Jan 2025 07:57:17 +0000 (+0100) Subject: dbwrap: check for option "tdb_hash_size:DBNAME.tdb" in db_open() X-Git-Tag: samba-4.21.6~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9a71d8c465e6dd340ff26b352561344372fda08;p=thirdparty%2Fsamba.git dbwrap: check for option "tdb_hash_size:DBNAME.tdb" in db_open() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15767 Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher (cherry picked from commit 7eb135c42d530a16e80e165d9e8e99d920797f12) --- diff --git a/source3/lib/dbwrap/dbwrap_open.c b/source3/lib/dbwrap/dbwrap_open.c index 52c8a94aeff..91556f22819 100644 --- a/source3/lib/dbwrap/dbwrap_open.c +++ b/source3/lib/dbwrap/dbwrap_open.c @@ -80,6 +80,11 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx, base = name; } + hash_size = lp_parm_int(GLOBAL_SECTION_SNUM, + "tdb_hash_size", + base, + hash_size); + if (tdb_flags & TDB_CLEAR_IF_FIRST) { bool try_readonly = false;