summaryrefslogtreecommitdiff
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
commit94a1b230f3323e55fa23f20b464964eaac643882 (patch)
tree94443b1277573266522cf64446ad408958384baf
parent59285f16d6428477b3a065fdf52098af1d62f606 (diff)
downloadsamba-94a1b230f3323e55fa23f20b464964eaac643882.tar.gz
samba-94a1b230f3323e55fa23f20b464964eaac643882.tar.bz2
samba-94a1b230f3323e55fa23f20b464964eaac643882.zip
r21723: Make use of the per-hashchain "freelists"
(This used to be commit f3421ae4cfa263c0e7a8e934b40342ee9885d239)
-rw-r--r--source3/lib/messages.c3
-rw-r--r--source3/locking/brlock.c3
-rw-r--r--source3/locking/locking.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index e0bf86a46c..e2c8a6b52f 100644
--- a/source3/lib/messages.c
+++ b/source3/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/source3/locking/brlock.c b/source3/locking/brlock.c
index 872ed2bbea..76a4039d82 100644
--- a/source3/locking/brlock.c
+++ b/source3/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/source3/locking/locking.c b/source3/locking/locking.c
index 7326ea08c0..6c4e896a2a 100644
--- a/source3/locking/locking.c
+++ b/source3/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;