summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-11-01 02:07:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:16 -0500
commita00c76d9fb11241f968336834ba4e4ced926e727 (patch)
tree18866a038f81a4467af11beea5d5f6c978c3a9f4 /source3/include
parenta656626d0f63d74dbfe6d42201c751df56c6f5a0 (diff)
downloadsamba-a00c76d9fb11241f968336834ba4e4ced926e727.tar.gz
samba-a00c76d9fb11241f968336834ba4e4ced926e727.tar.bz2
samba-a00c76d9fb11241f968336834ba4e4ced926e727.zip
r11435: Allow the hash size of the tdb open (locking) database
to be set in local.h. Change from the default (131) to another prime (1049). Should this be an smb.conf tunable parameter based on the number of open file descriptors available ? If so what scaling factor ? More tests to follow. Jeremy. (This used to be commit 6a902ec49ffea5d0ca0308d5ff51584cece41043)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/local.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/local.h b/source3/include/local.h
index 8960a4af55..c9b54ab1a2 100644
--- a/source3/include/local.h
+++ b/source3/include/local.h
@@ -235,4 +235,7 @@
#define MAX_LDAP_REPLICATION_SLEEP_TIME 5000 /* In milliseconds. */
+/* tdb hash size for the open database. */
+#define SMB_OPEN_DATABASE_TDB_HASH_SIZE 1049
+
#endif