s3-smbd: add a rate limited cleanup of brl, connections and locking db
authorAndrew Tridgell <tridge@samba.org>
Fri, 5 Feb 2010 01:42:06 +0000 (12:42 +1100)
committerMichael Adam <obnox@samba.org>
Fri, 12 Feb 2010 14:52:38 +0000 (15:52 +0100)
commit5b6b12894fb643d303cbfc4efb5c1d026e4cbd7d
tree9dffa23b5e8eb0eebd17534d5cd4d9b77b1c4baa
parentf3b1f9e83af2276300157de3fbcc90672721d9b1
s3-smbd: add a rate limited cleanup of brl, connections and locking db

On unclean shutdown we can end up with stale entries in the brlock,
connections and locking db. Previously we would do the cleanup on
every unclean exit, but that can cause smbd to be completely
unavailable for several minutes when a large number of child smbd
processes exit.

This adds a rate limited cleanup of the databases, with the default
that cleanup happens at most every 20s
source3/smbd/server.c