From f3421ae4cfa263c0e7a8e934b40342ee9885d239 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 6 Mar 2007 10:40:18 +0000 Subject: r21723: Make use of the per-hashchain "freelists" --- source/lib/messages.c | 3 +++ source/locking/brlock.c | 3 +++ source/locking/locking.c | 3 +++ 3 files changed, 9 insertions(+) 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; -- cgit