s3-smbd: add a rate limited cleanup of brl, connections and locking db
commit675c4b5522394e4431a88d9ab7647ca24765feb6
authorAndrew Tridgell <tridge@samba.org>
Sat, 6 Feb 2010 05:08:56 +0000 (5 21:08 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 31 Mar 2010 15:53:37 +0000 (31 17:53 +0200)
tree0e25c1c82a9ed08db70d863332a9dacf983184e6
parent6a78929fd0543e027912346c30e6208b4a1f4362
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
(cherry picked from commit dd498d2eecf124a03b6117ddab892a1112f9e9db)

The last 4 patches address bug #7312 (Many disconnecting clients renders
clustered samba unusuable for some time).
source3/smbd/server.c