diff options
author | Jeremy Allison <jra@samba.org> | 2005-11-01 02:07:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:16 -0500 |
commit | 6a902ec49ffea5d0ca0308d5ff51584cece41043 (patch) | |
tree | f4728898c75e4d6d16801d6ac8d63e5b10f5cc9b /source/locking | |
parent | 915cfb48f08b3748e22e68ed028eaca6d558cbad (diff) | |
download | samba-6a902ec49ffea5d0ca0308d5ff51584cece41043.tar.gz samba-6a902ec49ffea5d0ca0308d5ff51584cece41043.tar.xz samba-6a902ec49ffea5d0ca0308d5ff51584cece41043.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.
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/locking.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c index aad254f276c..322824ea2f4 100644 --- a/source/locking/locking.c +++ b/source/locking/locking.c @@ -315,9 +315,9 @@ BOOL locking_init(int read_only) return True; tdb = tdb_open_log(lock_path("locking.tdb"), - 0, TDB_DEFAULT|(read_only?0x0:TDB_CLEAR_IF_FIRST), - read_only?O_RDONLY:O_RDWR|O_CREAT, - 0644); + SMB_OPEN_DATABASE_TDB_HASH_SIZE, TDB_DEFAULT|(read_only?0x0:TDB_CLEAR_IF_FIRST), + read_only?O_RDONLY:O_RDWR|O_CREAT, + 0644); if (!tdb) { DEBUG(0,("ERROR: Failed to initialise locking database\n")); |