Sequence number obsession
Gerald (Jerry) Carter
jerry at samba.org
Wed May 21 13:50:14 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
On Sun, 27 Apr 2003, Ken Cross wrote:
> We seem to be a bit obsessive-compulsive when it comes to getting a
> domain's sequence number. I have network traces where we obtain the
> sequence number >20 times within a second.
> The "force" argument to refresh_sequence_number in winbindd_cache.c
> appears to be true quite often. Do we really need sub-second updates of
> the sequence number?
> The patch below to SAMBA_3_0 changes it so that it doesn't update the
> sequence number if it is valid and has been updated within the last
> second. Note that this overrides the "force" argument.
I think the original idea behind forcing an update of the sequence number
was to keep the cache straight. The sequence number opdate is forced to
True whenever our local cache fails and we have to query the PDC. If we
don't update the sequence number then we can get a false positive that
says a cache entry is out of date. This is a rough guess since I have
just brielfy looked at the code recently.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/
-----END PGP SIGNATURE-----
More information about the samba-technical