summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-03-06 10:40:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:25 -0500
commitf3421ae4cfa263c0e7a8e934b40342ee9885d239 (patch)
tree053db1edd7d49c791a1e392f3f2bcf10eda9d3b8 /source
parent97af3a019b196d530a50ffc05c57568e2dbda4bb (diff)
downloadsamba-f3421ae4cfa263c0e7a8e934b40342ee9885d239.tar.gz
r21723: Make use of the per-hashchain "freelists"
Diffstat (limited to 'source')
-rw-r--r--source/lib/messages.c3
-rw-r--r--source/locking/brlock.c3
-rw-r--r--source/locking/locking.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/source/lib/messages.c b/source/lib/messages.c
index e0bf86a46ce..e2c8a6b52fa 100644
--- a/source/lib/messages.c
+++ b/source/lib/messages.c
@@ -133,6 +133,9 @@ BOOL message_init(void)
return False;
}
+ /* Activate the per-hashchain freelist */
+ tdb_set_max_dead(tdb, 5);
+
CatchSignal(SIGUSR1, SIGNAL_CAST sig_usr1);
message_register(MSG_PING, ping_message, NULL);
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;