URL:
https://github.com/SSSD/sssd/pull/807
Title: #807: sudo: do not update last usn value on rules refresh
alexey-tikhonov commented:
"""
Hi @pbrezina,
However, there may be another rule that is not being refreshed which
usn value is higher then the current value but lower then the value of some of the
refreshed rules.
Is "which usn value is higher then the current value" part really important for
described issue to occur?
Cache state:
- R1: usn = 10
- R2: usn = xx
Updates on server:
- R2: usn = 19
- R1: usn = 20
R1 being refreshed => last_usn = 20 and smart refresh misses update of R2:usn=19
doesn't matter if cached R2 had usn=9 or usn=11 (higher or not then the current
value)
Or do I miss anything?
Also, if I understand correctly, proposed patch makes smart refresh to fetch possibly
already updated rules. Is it price paid for convenience?
"""
See the full comment at
https://github.com/SSSD/sssd/pull/807#issuecomment-525850305