diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-03-06 10:40:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:25 -0500 |
commit | f3421ae4cfa263c0e7a8e934b40342ee9885d239 (patch) | |
tree | 053db1edd7d49c791a1e392f3f2bcf10eda9d3b8 /source/locking | |
parent | 97af3a019b196d530a50ffc05c57568e2dbda4bb (diff) | |
download | samba-f3421ae4cfa263c0e7a8e934b40342ee9885d239.tar.gz samba-f3421ae4cfa263c0e7a8e934b40342ee9885d239.tar.xz samba-f3421ae4cfa263c0e7a8e934b40342ee9885d239.zip |
r21723: Make use of the per-hashchain "freelists"
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/brlock.c | 3 | ||||
-rw-r--r-- | source/locking/locking.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/locking/brlock.c b/source/locking/brlock.c index 872ed2bbeaf..76a4039d823 100644 --- a/source/locking/brlock.c +++ b/source/locking/brlock.c @@ -273,6 +273,9 @@ void brl_init(int read_only) lock_path("brlock.tdb"))); return; } + + /* Activate the per-hashchain freelist */ + tdb_set_max_dead(tdb, 5); } /**************************************************************************** diff --git a/source/locking/locking.c b/source/locking/locking.c index 7326ea08c09..6c4e896a2a9 100644 --- a/source/locking/locking.c +++ b/source/locking/locking.c @@ -363,6 +363,9 @@ BOOL locking_init(int read_only) return False; } + /* Activate the per-hashchain freelist */ + tdb_set_max_dead(tdb, 5); + if (!posix_locking_init(read_only)) return False; |