[SSSD] [PATCH] NSS: Expire in-memory netgroup cache before the nowait timeout

Stephen Gallagher sgallagh at redhat.com
Wed May 16 20:07:23 UTC 2012


On Wed, 2012-05-16 at 15:06 -0400, Stephen Gallagher wrote:
> On Wed, 2012-05-16 at 15:02 -0400, Stephen Gallagher wrote:
> > On Wed, 2012-05-16 at 14:34 -0400, Stephen Gallagher wrote:
> > > The fact that we were keeping it in memory for the full duration
> > > of the cache timeout meant that we would never reap the benefits
> > > of the midpoint cache refresh.
> > 
> > One modification. I realized that we should maintain the same minimum
> > time for the midpoint cache that we do elsewhere (10 seconds), so I set
> > that explicitly if it's lower.
> > 
> > Also, I realize it looks like there's a divide-by-zero issue if the
> > nowait percentage is set to 100, but that's protected against already in
> > nss_get_config().
> 
> One more fix. I forgot to accomodate the case where the nowait cache is
> disabled.

Acked by Simo on IRC.

Pushed to master and sssd-1-8.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120516/f5520ea0/attachment.sig>


More information about the sssd-devel mailing list