s3-smbd: add a rate limited cleanup of brl, connections and locking db
authorAndrew Tridgell <tridge@samba.org>
Sat, 6 Feb 2010 05:08:56 +0000 (21:08 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 6 Feb 2010 06:17:32 +0000 (22:17 -0800)
commitdd498d2eecf124a03b6117ddab892a1112f9e9db
tree347a63bb161ff6945d5a3d07460a8bfa22828b0f
parent74267d652485cdcb711f734f0d80da0fb1495867
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