1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

r21723: Make use of the per-hashchain "freelists"

(This used to be commit f3421ae4cf)
This commit is contained in:
Volker Lendecke
2007-03-06 10:40:18 +00:00
committed by Gerald (Jerry) Carter
parent 59285f16d6
commit 94a1b230f3
3 changed files with 9 additions and 0 deletions

View File

@ -133,6 +133,9 @@ BOOL message_init(void)
return False; return False;
} }
/* Activate the per-hashchain freelist */
tdb_set_max_dead(tdb, 5);
CatchSignal(SIGUSR1, SIGNAL_CAST sig_usr1); CatchSignal(SIGUSR1, SIGNAL_CAST sig_usr1);
message_register(MSG_PING, ping_message, NULL); message_register(MSG_PING, ping_message, NULL);

View File

@ -273,6 +273,9 @@ void brl_init(int read_only)
lock_path("brlock.tdb"))); lock_path("brlock.tdb")));
return; return;
} }
/* Activate the per-hashchain freelist */
tdb_set_max_dead(tdb, 5);
} }
/**************************************************************************** /****************************************************************************

View File

@ -363,6 +363,9 @@ BOOL locking_init(int read_only)
return False; return False;
} }
/* Activate the per-hashchain freelist */
tdb_set_max_dead(tdb, 5);
if (!posix_locking_init(read_only)) if (!posix_locking_init(read_only))
return False; return False;