]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dbwrap: check for option "tdb_hash_size:DBNAME.tdb" in db_open()
authorRalph Boehme <slow@samba.org>
Thu, 9 Jan 2025 07:57:17 +0000 (08:57 +0100)
committerJule Anger <janger@samba.org>
Thu, 17 Apr 2025 11:31:14 +0000 (11:31 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15767

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 7eb135c42d530a16e80e165d9e8e99d920797f12)

source3/lib/dbwrap/dbwrap_open.c

index 52c8a94aeff0fbb26371011208c748b70e06c3f1..91556f228196b3122de03a4d4d966a419508ba0e 100644 (file)
@@ -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;