diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/messages.c | 3 | ||||
-rw-r--r-- | source3/locking/brlock.c | 3 | ||||
-rw-r--r-- | source3/locking/locking.c | 3 |
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; |